Summary: | getComputedStyle(...).zIndex returns string "normal" | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Winer <awiner> | ||||||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Major | CC: | mitz, sam | ||||||||
Priority: | P2 | Keywords: | HasReduction, InRadar | ||||||||
Version: | 523.x (Safari 3) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Adam Winer
2007-06-22 16:39:23 PDT
Confirmed with a local debug build of WebKit r23737 with Safari 3.0 (522.12) on Mac OS X 10.4.10 (8R218). Note that this also occurs with Safari 2.0.4 (419.3) on Mac OS X 10.4.10 (8R218), so it is not a regression. Both Opera 9.21 and Firefox 2.0.0.4 work as expected. Created attachment 15200 [details]
Test case
Please attach test cases to a bug in the future--makes them easier to test! :)
Since the div is not positioned nor transparent, it actually renders as 'auto', so I don't think it should return '20'. That it returns 'normal' instead of auto looks like a simple typo in CSSComputedStyleDeclaration: if (style->hasAutoZIndex()) return new CSSPrimitiveValue(CSS_VAL_NORMAL); should be CSS_VAL_AUTO. Created attachment 15204 [details]
patch
Comment on attachment 15204 [details]
patch
Code change looks fine, but please improve the logging function in the test as discussed on IRC.
Created attachment 15205 [details]
updated patch
Comment on attachment 15205 [details]
updated patch
r=me
|