[Webkit-unassigned] [Bug 75277] Images positioned incorrectly with CSS position:absolute inside position:relative with text-align:center

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 4 10:14:27 PDT 2012


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





--- Comment #1 from Daniel Trebbien <dtrebbien at gmail.com>  2012-10-04 10:14:53 PST ---
Created an attachment (id=167119)
 --> (https://bugs.webkit.org/attachment.cgi?id=167119&action=review)
Test case

This is a test case which demonstrates the problem.

It seems that with text-align:center, WebKit is centering the H1 text *as if* the H1's width were offsetWidth + paddingLeft + paddingRight.

This test case renders correctly in Safari 6.0.1 and Firefox 15.0.1, but not in Chrome 22.0.1229.79, Chrome 24.0.1286.0 canary, or WebKit r130371 built on 04 October 2012.  This problem also affects iOS 6 Mobile Safari, but not iOS 5.1 Mobile Safari.

Getting rid of text-align:center fixes the problem in this case because the text width is larger than its container anyway.

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