[Webkit-unassigned] [Bug 95647] New: Margins in percentage are not always referring to the width of the container

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 1 10:31:27 PDT 2012


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

           Summary: Margins in percentage are not always referring to the
                    width of the container
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://jsfiddle.net/YyBeV/12/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dzmail90-dev at yahoo.it


In current WebKit builds, when these conditions are met:
- a container block has the value absolute, relative or fixed on property position
- and a content block has the property position:absolute
then the margin-top and margin-bottom property of the content, when expressed in percentages, are NOT referring to the width of the containing block, but they are referring to the height of the containing block.
This is in contrast to what Firefox and Opera do: they always use the width of the container to calculate the margin (top/bottom/right/left) of the content when it is expressed in percentage.
A test case is visible here:
http://jsfiddle.net/YyBeV/12/

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