Bug 23729 - reflections don't obey z-index
Summary: reflections don't obey z-index
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://web.ist.utl.pt/~carlosefonseca...
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2009-02-04 08:02 PST by Carlos Fonseca
Modified: 2011-05-09 08:29 PDT (History)
4 users (show)

See Also:


Attachments
simple test case (838 bytes, text/html)
2009-02-04 08:03 PST, Carlos Fonseca
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Fonseca 2009-02-04 08:02:32 PST
-webkit-box-reflect: brings an image to the front, even if it has a lower z-index than other elements.
Comment 1 Carlos Fonseca 2009-02-04 08:03:58 PST
Created attachment 27314 [details]
simple test case

simple test case made to illustrate the problem
Comment 2 Carlos Fonseca 2009-02-04 08:05:04 PST
this happens on version 530.0+
Comment 3 Mark Rowe (bdash) 2009-02-06 16:51:22 PST
<rdar://problem/6565366>
Comment 4 Mihnea Ovidenie 2011-05-09 02:45:16 PDT
(In reply to comment #2)
> this happens on version 530.0+

Hi,

From this sample i can see that the elements have static position. The CSS spec says that z-index works with positioned elements (those elements that have position: absolute|fixed). In this sample, if one specifies absolute positioning, then WebKit behaves correctly (i have tried with nightly 86041 on Mac). 

In my opinion, this is not a bug.

Regards,
Mihnea
Comment 5 Carlos Fonseca 2011-05-09 03:59:17 PDT
Ok
Comment 6 Simon Fraser (smfr) 2011-05-09 08:29:50 PDT
-webkit-box-reflect cause an element to become a stacking context, so this is correct behavior.