[Webkit-unassigned] [Bug 114879] New: Incorrect computation of shrink-to-fit width for block with white-space:nowrap and floating children

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 19 09:58:36 PDT 2013


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

           Summary: Incorrect computation of shrink-to-fit width for block
                    with white-space:nowrap and floating children
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bzbarsky at mit.edu


Created an attachment (id=198894)
 --> (https://bugs.webkit.org/attachment.cgi?id=198894&action=review)
Testcase

Consider the attached testcase.

The width of the first green box should be the minimum width as defined at http://www.w3.org/TR/CSS21/visudet.html#shrink-to-fit-float which means it should be the width if all allowed line-breaks are taken.

The second green box shows that a line-break between the two floats is in fact allowed, if it's needed.

So the first green box should end up with a width of 16px and the two floats in it should stack on top of each other.  But in WebKit they end up next to each other.

Gecko, Trident, Presto get this right as far as I can tell.

Note that removing the "white-space:nowrap" makes WebKit behave correctly, which is odd, since white-space does not affect float positioning...

-- 
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