Bug 16130

Summary: z-index applies to non-positioned elements with opacity
Product: WebKit Reporter: Ingo Chao <info>
Component: CSSAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal CC: gavin.sharp, mitz, phiw2
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
testcase
none
Stop honoring z-index on objects that are not positioned. mitz: review+

Ingo Chao
Reported 2007-11-25 07:28:08 PST
opacity < 1.0 forms a stacking context. But should z-index apply to an element that is not positioned? In the test case, opacity:0.66 and z-index:2 let a red box paint above a following blue box that has opacity:0.90 set. Not in Firefox 2.0.0.9.
Attachments
testcase (594 bytes, text/html)
2007-11-25 07:29 PST, Ingo Chao
no flags
Stop honoring z-index on objects that are not positioned. (1.59 KB, patch)
2008-05-14 13:01 PDT, Dave Hyatt
mitz: review+
Ingo Chao
Comment 1 2007-11-25 07:29:27 PST
Created attachment 17505 [details] testcase
Alexey Proskuryakov
Comment 2 2008-02-21 07:10:45 PST
See also: bug 11905.
Dave Hyatt
Comment 3 2008-05-14 13:01:41 PDT
Created attachment 21132 [details] Stop honoring z-index on objects that are not positioned.
mitz
Comment 4 2008-05-14 13:06:25 PDT
Comment on attachment 21132 [details] Stop honoring z-index on objects that are not positioned. r=me, please add a test case (using getComputedStyle if possible, or pixel test otherwise).
Dave Hyatt
Comment 5 2008-05-14 15:08:43 PDT
Fixed in r33458.
Note You need to log in before you can comment on or make changes to this bug.