Closed
Bug 837417
Opened 11 years ago
Closed 11 years ago
This HTML code sends Firefox 18.0.1 nuts!! (adds margin to wrong div)
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 451791
People
(Reporter: mozdev, Unassigned)
Details
Attachments
(1 file)
56.55 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0 Build ID: 20130116073211 Steps to reproduce: Wrote this code in an HTML page (as clean and small as possible, all CSS inlined): <!DOCTYPE html> <html lang="it"> <head> <title>Whoa!</title> </head> <body> <div style="background:#777;"> <div style="float:left;">button</div> <div style="clear:both;"></div> </div> <div style="margin:100px 0 0 0;border:1px solid red;">What the F?</div> </body> </html> Firefox (18.0.1 OSX) adds the (100px) margin BOTH to the bottom DIV, and to the TOP div! Actual results: Firefox (18.0.1) adds the (100px) margin BOTH to the bottom DIV, and to the TOP div! So the top (background:#777) DIV is not on top of page but in the middle of it. In other words a margin is applied to a DIV that has no margin whatever. Expected results: The top (background:#777) DIV should stay on top of page, while the bottom DIV has a 100px margin on top
- removing the float on the button makes the wrong margin disappear - removing the clearing div makes the wrong margin disappear although top deiv becames thin (as expected) - changing the margin:100px to a padding makes the wrong margin disappear - setting a border:1px solid red to the top div makes the wrong margin disappear (?!?!)
Hardware: x86 → x86_64
Updated•11 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Summary: This HTML code sends Firefox 18.0.1 nuts!! → This HTML code sends Firefox 18.0.1 nuts!! (adds margin to wrong div)
Comment 2•11 years ago
|
||
Sounds very much like bug 451791.
Comment 3•11 years ago
|
||
Based on the description of the bug envelope in comment 1, I think this _is_ bug 451791, not just a relative.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•