[Webkit-unassigned] [Bug 77811] New: auto-margin-centered block does not update when parent's padding-right changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 4 12:04:03 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=77811
Summary: auto-margin-centered block does not update when
parent's padding-right changes
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kaiser.yann at gmail.com
Created an attachment (id=125498)
--> (https://bugs.webkit.org/attachment.cgi?id=125498&action=review)
Test case
Consider the following:
* A block, let's call it container is positioned relatively.
* Inside it, we center horizontally another block using auto margins.
* We set padding-right on the container to a positive value
* The inner block is expected to shift to the left. It does not in WebKit.
The error is present in the r106740 nightly build of WebKit and in Chromium 16.0.912.77.
Firefox displays the inner block shifted to the left as expected.
The bug does not happen when changing padding-left.
Attached is a test case. For your convenience I hosted it on a web server here:
http://epsy.net46.net/stuff/webkit-margins-not-updating.html
If your browser/window manager allows it, you can try switching to the inspector while hovering. The inner box updates to the correct position if you change the selection in the Elements tab.
Another workaround I found was to also set a margin. Setting padding-left instead has no other effect than its own.
--
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