Bug 16130 - z-index applies to non-positioned elements with opacity
: z-index applies to non-positioned elements with opacity
Status: RESOLVED FIXED
: WebKit
CSS
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-11-25 07:28 PST by
Modified: 2008-05-14 15:08 PST (History)


Attachments
testcase (594 bytes, text/html)
2007-11-25 07:29 PST, Ingo Chao
no flags Details
Stop honoring z-index on objects that are not positioned. (1.59 KB, patch)
2008-05-14 13:01 PST, Dave Hyatt
mitz: review+
Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 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.
------- Comment #1 From 2007-11-25 07:29:27 PST -------
Created an attachment (id=17505) [details]
testcase
------- Comment #2 From 2008-02-21 07:10:45 PST -------
See also: bug 11905.
------- Comment #3 From 2008-05-14 13:01:41 PST -------
Created an attachment (id=21132) [details]
Stop honoring z-index on objects that are not positioned.
------- Comment #4 From 2008-05-14 13:06:25 PST -------
(From update of attachment 21132 [details])
r=me, please add a test case (using getComputedStyle if possible, or pixel test otherwise).
------- Comment #5 From 2008-05-14 15:08:43 PST -------
Fixed in r33458.