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)

36 Branch
x86_64
Windows 7
defect
Not set
normal

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.
Component: Untriaged → Layout: HTML Frames
Product: Firefox → Core
This needs the actual stylesheets involved, no?
Flags: needinfo?(cezary.wagner)
Component: Layout: HTML Frames → Layout
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)
> CSS is nothing special. The point is, the exact CSS matters. Please attach it to this bug.
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
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).
Next time I will save page to not destroy invalid CSS but this time I was not done such thing.
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.

Attachment

General

Creator:
Created:
Updated:
Size: