[Webkit-unassigned] [Bug 58532] New: Inconsistent calculation of the position of centered items
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 14 05:29:18 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=58532
Summary: Inconsistent calculation of the position of centered
items
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rq at akl.lt
Created an attachment (id=89561)
--> (https://bugs.webkit.org/attachment.cgi?id=89561&action=review)
Test case
There is an inconsistency in WebKit between calculating the position of centered background image and centered (using margin: auto) block-level elements. When the size of a centered background or element differs from the size of what it is being centered in by an odd number (e.g. the element/background is 100px wide, and its parent is 151px wide), the centered backgound will be offset 0.5px to the right from the exact center, but a centered block-level element will be offset to the 0.5px to the left from it.
This inconsistency slightly breaks design of websites which expect those calculations to be consistent.
Test case attached. If everything looks fine in it, try resizing your window horizontally.
--
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