The spec has recently changed for these document types, to indicate that they should be standards-mode documents instead of quirks-mode documents. https://github.com/whatwg/html/pull/6745 The implementation should change accordingly. These three WPTs test some of this behavior: https://wpt.fyi/results/html/browsers/browsing-the-web/read-media/pageload-video.html https://wpt.fyi/results/html/browsers/browsing-the-web/read-media/pageload-image.html https://wpt.fyi/results/html/browsers/browsing-the-web/read-text/load-text-plain.html
<rdar://problem/81851619>
Created attachment 436671 [details] WIP patch
Created attachment 436686 [details] WIP patch
Created attachment 436689 [details] WIP patch
Created attachment 436787 [details] WIP patch
Created attachment 436791 [details] WIP patch
From the test cases in Comment 0: Test 1 - Only Firefox pass this test as of right now. Test 2 - Only Safari fail this test. Test 3 - Safari fail one of the test and it is only browsers failing this test. All browsers (Chrome Canary 106 and Firefox Nightly 105) pass all tests. Just wanted to share updated status. Thanks!
Pull request: https://github.com/WebKit/WebKit/pull/4272
Committed 254526@main (fcbca01158eb): <https://commits.webkit.org/254526@main> Reviewed commits have been landed. Closing PR #4272 and removing active labels.