[Webkit-unassigned] [Bug 18347] New: Absolutely positioned image percentage width does not respect container's padding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 7 14:02:41 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18347

           Summary: Absolutely positioned image percentage width does not
                    respect container's padding
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Trivial
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: andrewwatt at gmail.com
                CC: andrewwatt at gmail.com


An absolutely positioned replaced element with a percentage width should scale
in respect to its containing block's width, including padding.  Instead, it
seems that the padding is not taken into account, and only the content width is
used.

I believe the relevant part of the CSS 2.1 spec is
<http://www.w3.org/TR/CSS21/visudet.html#the-width-property>: For absolutely
positioned elements whose containing block is based on a block-level element,
the percentage is calculated with respect to the width of the padding box of
that element. This is a change from CSS1, where the percentage width was always
calculated with respect to the content box of the parent element.


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



More information about the webkit-unassigned mailing list