Closed Bug 313010 Opened 15 years ago Closed 15 years ago

CSS "display: none" does not work on the root element

Categories

(Core :: CSS Parsing and Computation, defect, minor)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 283686

People

(Reporter: minghong, Assigned: dbaron)

Details

Attachments

(3 files)

332 bytes, text/html
Details
448 bytes, application/xhtml+xml
Details
297 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1

The display property of the root element (e.g. html of HTML, window of XUL)
seems to be ignored. Try something like html {display: none} and :root {display:
none}. Other values like inline, table, etc are hard to test, but I guess they
do not work anyway.

Both IE and Opera shows nothing, according to the CSS.

Reproducible: Always

Steps to Reproduce:
1. See test cases

Actual Results:  
The document content is rendered.

Expected Results:  
The document content should not be rendered.
Attached file HTML test case
Attached file XHTML test case
Attached file XUL test case

*** This bug has been marked as a duplicate of 283686 ***
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.