Closed Bug 191428 Opened 22 years ago Closed 22 years ago

Paragraphs with display set to none still uses space

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: bugzilla, Assigned: dbaron)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Build Identifier: 

Setting display:none; to <p> doesn't completely hide the paragrah.

Using build 2003013008.

Reproducible: Always

Steps to Reproduce:
See testcase.
Attached file Testcase (deleted) —
That's because we have a quirk that the first content node in a table cell gets
no top margin.  Changing display does not remove the presence of a content node...

In standards mode the space at the top would be there even when the first <p>
was visible.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Sorry, I didn't quite understand that, but shouldn't the display:none remove the
presence of the content node? 
IE and Opera 7 does it, are they incorrect?
Style can't remove the presence of a content node.

There is no "correct" here -- we're talking about quirks mode (eg the fact that
there is no space at the top when the <p> is display:block is a bug, per CSS).

This particular issue with this quirk is known, and not worth fixing because
it's almost never encountered in quirks-mode pages in the wild.
Bug 33784 would fix this, anyway.  But that's just a bug on making our incorrect
behavior in quirks mode invalid in more cases.
Depends on: 33784
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: