On Oct 26, 2010, at 5:09 AM, [email protected] wrote: > Hi, > I am working on improving the spatial algorithm in webkit, and I have a > problem with positioned elements that do not have a z-index defined. > If I have 2 elements that are intersecting, I need to find out which element > is covering the other. Is it safe to assume that the last element in tree > order will cover the previous element, if they have the same z-index? If not, > how can I determine which element is covering the other? >
The z-order tree in RenderLayer stores the front-to-back ordering of positioned elements. Look at the hit-testing code in RenderLayer to see how we use this information for hit testing. Simon
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

