[Webkit-unassigned] [Bug 22764] bottom border misaligned due to image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 18 03:12:16 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=22764


mustaf.here at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mustaf.here at gmail.com




--- Comment #8 from mustaf.here at gmail.com  2011-05-18 03:12:16 PST ---
(In reply to comment #6)
> "Since a float is not in the flow, non-positioned block boxes created before and after the float box flow vertically as if the float did not exist. However, the current and subsequent line boxes created next to the float are shortened as necessary to make room for the margin box of the float."
> 
> Maybe be the relevant line of CSS 2.1 to explain that floats can overflow out of their containing blocks.
> 
> I think basically floats don't create line boxes, so they don't get included in block height calculations, thus blocks colapse to fit their lines, while floats may yet overflow those blocks.
> 
> This test case is invalid as far as I can tell.  IE's behavior is wrong.

Hi Eric,

I might be wrong, but based on my investigation, I have found that floats create their own line boxes (in RenderBlock::LineBreaker::skipLeadingWhitespace, therefore they call positionNewFloatOnLine from here). But inside positionNewFloatOnLine(), I did not find any code to update block height. This could be the right behavior, but this is what I saw in the code

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list