[Webkit-unassigned] [Bug 54613] New: percentage based margin-top for an absolute positioned element is computed based on the height of the viewport.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 16 20:56:51 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54613
Summary: percentage based margin-top for an absolute positioned
element is computed based on the height of the
viewport.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: phiw at l-c-n.com
Created an attachment (id=82750)
--> (https://bugs.webkit.org/attachment.cgi?id=82750&action=review)
test case
An absolute positioned element whose containing block is the viewport (initial containing block) has percentages for its margin-top computed based on the height of the viewport (instead of the width).
Css 2.1:8.3 is formal in specifying that percentages for margin (and padding) are computed based on the *width* of the containing block.
http://www.w3.org/TR/CSS21/box.html#propdef-margin
In the testcase, the div has a 5% margin-top. Widening or narrowing the window horizontally doesn’t change the position of the block.
Gecko and Opera behave correctly.
--
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