Closed
Bug 119342
Opened 23 years ago
Closed 22 years ago
<p> at beginning of abs positioned <div> causes extra blank line
Categories
(Core :: Layout, defect)
Tracking
()
Future
People
(Reporter: stephen.moehle, Assigned: attinasi)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
417 bytes,
text/html
|
Details |
A <p> at the beginning of an absolutely positioned <div> causes an extra blank line before the text. In the following example, "text 1" will appear one line below "text 2". Both NN4 and IE5.5 show both pieces of text on the same line. <DIV style="position:absolute; left:2px; top:20px; width:60px"> <p>"text 1"</p> </DIV> <DIV style="position:absolute; left:70px; top:20px; width:60px"> "text 2" </DIV> Tested with Mozilla trunk 2002-01-10-03 on Win2000.
Reporter | ||
Comment 1•23 years ago
|
||
A simple test case using the example above.
Updated•23 years ago
|
Comment 2•23 years ago
|
||
If you change <p> to <p style="margin:0"> then the "extra line" disappears. IMO, the current layout is correct.
Severity: normal → minor
Reporter | ||
Comment 3•23 years ago
|
||
Bull. My testcase has a doctype that should trigger quirks mode so the page should render as it does for NN4, IE5, IE6, and Opera. Even in strict mode, it should render the same way. This attitude on the part of Mozilla that the whole world has to kowtow to its every whim is getting tiresome.
Severity: minor → normal
Updated•23 years ago
|
Target Milestone: --- → Future
Comment 4•22 years ago
|
||
P has a default top and bottom margin of 1em in Mozilla. See bug 60535 comment 8. *** This bug has been marked as a duplicate of 60535 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•