Closed
Bug 1149456
Opened 11 years ago
Closed 11 years ago
adding 4em margin to BODY if child div contains only floating elements
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: cezary.wagner, Unassigned)
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150320202338
Steps to reproduce:
1. Paste html code into Firefox - see that body start not from 0 but from about 4em. Chrome renders it correctly.
2. Check that first page-top contains only floating elements.
3. Try to set min-height to 1em - what helps without reason - try to set to 0 to see problem.
Actual results:
1. Top margin to body is added without reason.
Expected results:
1. No margin added to body - top white margin should be not visible.
| Reporter | ||
Comment 1•11 years ago
|
||
| Reporter | ||
Comment 2•11 years ago
|
||
| Reporter | ||
Comment 3•11 years ago
|
||
Updated•11 years ago
|
Component: Untriaged → Layout: HTML Frames
Product: Firefox → Core
Comment 4•11 years ago
|
||
This needs the actual stylesheets involved, no?
Flags: needinfo?(cezary.wagner)
Updated•11 years ago
|
Component: Layout: HTML Frames → Layout
| Reporter | ||
Comment 5•11 years ago
|
||
CSS is nothing special.
Top is div containing two floating - in Chrome is O.K.
Next is div with content (not floating).
I am not sure if it valid css but if it will not work I can send you valid css. I think that is last working.
Flags: needinfo?(cezary.wagner)
Comment 6•11 years ago
|
||
> CSS is nothing special.
The point is, the exact CSS matters. Please attach it to this bug.
| Reporter | ||
Comment 7•11 years ago
|
||
| Reporter | ||
Comment 8•11 years ago
|
||
I send some CSS but not sure if it generate bug - it will be problem with CSS retrive since I am fixed it whatever you can learn problem root cause from screenshots
| Reporter | ||
Comment 9•11 years ago
|
||
page-top is container of floats. I fixed problem by converting one of float to normal and removing margin from other than float right it gives same layout but removing not need spacing body (unexcepted).
| Reporter | ||
Comment 10•11 years ago
|
||
Next time I will save page to not destroy invalid CSS but this time I was not done such thing.
Comment 11•11 years ago
|
||
OK. Applying that CSS to that HTML looks nothing like the attached screenshots, and doesn't have the 4em gap.
Please do reopen if there is a way to reproduce the problem at some point...
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•