[Webkit-unassigned] [Bug 147953] New: Percentage padding of absolutely positioned element being calculated based on parent's content width instead of containing block.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 12 14:09:47 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147953
Bug ID: 147953
Summary: Percentage padding of absolutely positioned element
being calculated based on parent's content width
instead of containing block.
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: keithjgrant at gmail.com
Create a relatively-positioned container that has left/right padding. Inside that, create an absolutely-positioned element with left: 0 and right: 0, so its width equals the width of the container. Give the absolutely-positioned element a percentage based left and/or right padding, and that padding will be calculated based on the width of the container's content, rather than the width of the containing block.
I've recreated the bug here: http://codepen.io/keithjgrant/pen/LVvbYZ
The spec states the percentage is calculated with respect to the width of the containing block (http://www.w3.org/TR/css3-box/#the-padding). The containing block should be determined by the padding edge of the ancestor (http://www.w3.org/TR/css3-box/#the-padding).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150812/bc7deb09/attachment.html>
More information about the webkit-unassigned
mailing list