Closed
Bug 691283
Opened 14 years ago
Closed 1 year ago
<p> as last child of body has a nonzero bottom margin that can collapse with the top margin
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: sbadau, Unassigned)
Details
Attachments
(1 file)
24.66 KB,
image/jpeg
|
Details |
Mozilla/5.0 (Windows NT 5.1; rv:10.0a1) Gecko/20111002 Firefox/10.0a1
On www.schalast.com one of the frame overlaps. Issue is visible especially in the English version.
Reproducible: always
Steps to reproduce:
1. Go to www.schalast.com
2. Select English version
Actual results:
The upper frame is not displayed entirely
Expected results:
All the frames should be properly displayed.
*Note: Issue is reproducible ever since Firefox 3.6.16
![]() |
||
Comment 1•14 years ago
|
||
The English version has:
<frameset rows="59,*" framespacing="0" border="0" frameborder="0">
<frame name="Banner" scrolling="no" target="Inhalt" marginwidth="0" marginheight="0"
src="banner_english.htm">
So banner_english.htm gets 59px of vertical space to work with.
The actual document in the subframe basically looks like this (quirks mode):
<body style="margin: 0"><p>
<img border="0" src="http://www.schalast.com/images/banner_english2.gif" align="left" width="1456" height="58"></p>
The <p> has a 0 top margin because we're in quirks mode but a nonzero bottom margin. And the image ends up below the bottom margin of the <p>. We used to zero out that bottom margin in quirks mode until bug 101084 was fixed.
I believe our behavior here is correct given the nonzero bottom margin: the <p> is empty, so the margin collapses up to be above the float...
Component: Layout: HTML Frames → Layout: Block and Inline
QA Contact: layout.html-frames → layout.block-and-inline
![]() |
||
Comment 2•14 years ago
|
||
WebKit seems to have a quirk where it _does_ zero out the bottom margin of a last-child <p> in body.
Summary: Frames are not properly displayed → <p> as last child of body has a nonzero bottom margin that can collapse with the top margin
Updated•3 years ago
|
Severity: normal → S3
Comment 3•1 year ago
|
||
This issue is not reproducible anymore using the latest Firefox 123.0 build on Win 10, the frames are properly displayed. I'm closing it as WFM.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•