[Webkit-unassigned] [Bug 32230] New: getComputedStyle() returns different values for different zoom levels

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 7 10:33:45 PST 2009


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

           Summary: getComputedStyle() returns different values for
                    different zoom levels
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sorccu at gmail.com


Created an attachment (id=44419)
 --> (https://bugs.webkit.org/attachment.cgi?id=44419)
Test case

In WebKit, getComputedStyle() returns scaled values for properties such as
font-size, width and height. This makes it impossible to rely on these values.
The following might make it easier to understand:

(el.style.fontSize = '20px') !== getComputedStyle(document.body, '').fontSize
// if zoom level != 1

What makes this especially troubling is this:

(document.body.style.fontSize = getComputedStyle(document.body, '').fontSize)
!== getComputedStyle(document.body, '').fontSize // if zoom level != 1

Firefox and Opera always return the same value regardless of zoom level.

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