[Webkit-unassigned] [Bug 54613] percentage based margin-top for an absolute positioned element is incorrectly computed based on the height of the viewport.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 3 07:30:35 PDT 2012


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





--- Comment #6 from Mark Rabjohn <mark at wizzy.co.uk>  2012-08-03 07:30:35 PST ---
Created an attachment (id=156378)
 --> (https://bugs.webkit.org/attachment.cgi?id=156378&action=review)
This clearly shows percentage as being calculated as 50% of height of parent, not width of parent.

This shows margin-top configured relative to parent element. On compliant browser, the green box is outside the red box. On Chrome and Safari, the green box is fully inside of the red box.

This clearly shows percentage as being calculated as 50% of height of parent, not width of parent.

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