http://test.csswg.org/suites/css2.1/20110323/html4/root-box-002.htm fails Additional Info: Here is a reduced scenario of the bug. In style for html:before specifying both "content" and "display: table-caption" makes the div in the body invisible. Removing one of this makes the div visible. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css"> html:before {content: "This text should appear before the Div to Test-Style"; display: table-caption;} head, body { display: table-row; } .bl { background: url(support/test-bl.png); } [title="tl"] { background: url(support/test-tl.png); } </style> </head> <body> <div class="bl">Div to Test-Style: Before HTML </div> </body> </html>
Created attachment 460390 [details] Safari 15.5 matches other browsers I am unable to reproduce this bug based on attached test case in Comment 01 using Safari 15.5 on macOS 12.4. It matches with other browsers as shown in the attached screenshot. I think this was resolved along the way and can now be marked as "RESOLVED CONFIGURATION CHANGED". Thanks! Further - based on Comment 01, I changed the reduction into following JSFiddle: Link - https://jsfiddle.net/rmjs528p/ It also behave similar across all browser (but no screenshot attached). Thanks!