[Webkit-unassigned] [Bug 53106] New: Abspos children of an inline relpos element don't position correctly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 25 11:48:55 PST 2011


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

           Summary: Abspos children of an inline relpos element don't
                    position correctly.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://test.csswg.org/suites/css2.1/20110111/html4/con
                    taining-block-032.htm
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tabatkins at google.com


According to <http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>, when an inline LTR element is the containing block for an absolutely positioned element, the 'left' and 'top' properties use the left and top edges of the first box generated by the containing block, while the 'right' and 'bottom' properties use the right and bottom edges of the last box generated by the containing block.

In the linked test case (note: must have the Ahem font installed), the "left" edge is just to the left of "B", while the "right" edge is just to the right of "C".  This means that #topleft should cover B, #topright should cover A, #bottomleft should cover D, and #bottomright should cover C.

Instead, #topright is covering the upper space, and #bottomright is covering the bottom space.  By inspection, it appears that we're moving the "right" edge to be equal to the "left" edge, likely because we have a check somewhere that attempts to ensure that the "right" edge is never to the left of the "left" edge by setting them equivalent when that occurs.

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