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)
Tracking
()
VERIFIED
INVALID
People
(Reporter: bugzilla, Assigned: dbaron)
References
Details
Attachments
(1 file)
1.32 KB,
text/html
|
Details |
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.
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
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
Reporter | ||
Comment 3•22 years ago
|
||
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?
Comment 4•22 years ago
|
||
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.
Assignee | ||
Comment 5•22 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•