[Webkit-unassigned] [Bug 55111] New: getComputedStyle() returns unitless values for some properties that require units

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 23 19:47:40 PST 2011


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

           Summary: getComputedStyle() returns unitless values for some
                    properties that require units
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rob.brackett at gmail.com


Created an attachment (id=83598)
 --> (https://bugs.webkit.org/attachment.cgi?id=83598&action=review)
Test case for unit-less properties in getComputedStyle()

The values returned by getComputedStyle() for some properties that require units do not include units. For example:

<div id="test" style="-webkit-column-gap: 20px"></div>
<script type="application/javascript">
  getComputedStyle(document.getElementById("test")).webkitColumnGap; // "20" (should be "20px")
</script>

The properties exhibiting the issue are:
-webkit-column-width
-webkit-column-gap
-webkit-perspective

A test case is attached. Properties in red do not include units. At current, there are only three buggy properties and they are equally buggy when display is "none" as when it is not, but experience with getComputedStyle() bugs has taught me the value of a comprehensive test ;)

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