Bug 63183 - CSS2.1-Chapter9 : root-box-002:HTML elements can be set to other display property values in order to behave like another element.
Summary: CSS2.1-Chapter9 : root-box-002:HTML elements can be set to other display prop...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://test.csswg.org/suites/css2.1/2...
Keywords:
Depends on:
Blocks: 47141
  Show dependency treegraph
 
Reported: 2011-06-22 14:27 PDT by Sangeetha
Modified: 2022-06-21 17:03 PDT (History)
5 users (show)

See Also:


Attachments
Safari 15.5 matches other browsers (997.12 KB, image/png)
2022-06-21 16:48 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sangeetha 2011-06-22 14:27:11 PDT
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>
Comment 1 Ahmad Saleem 2022-06-21 16:48:12 PDT
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!