[Webkit-unassigned] [Bug 14321] New: getComputedStyle(...).zIndex returns string "normal"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 16:39:23 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14321

           Summary: getComputedStyle(...).zIndex returns string "normal"
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: awiner at gmail.com


In the following page, clicking on "Hi" shows
  Computed: normal element: 20
This is true both on 419.3/MacOS and 522.13.1/Windows.

On Firefox 2.0, it displays:
  Computed: 20 element: 20

Can't see where the string "normal" comes from, as legal values seem to be
"inherit", "auto", and integers.  "normal" shows whether or not the z-index
property is set.

<html>
<head>
<script>
function testHtml()
{
  var elem = document.getElementById('someId');
  var compStyle = elem.ownerDocument.defaultView.getComputedStyle(elem, null);
  alert("Computed:" + compStyle.zIndex + ", off element: " +
elem.style.zIndex);

}
</script>
</head>
<body>
<div style="z-index:20" id ='someId' onclick="testHtml()">Hi</div>
</body>
</html>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list