[webkit-dev] Order of positioned elements

Simon Fraser simon.fraser at apple.com
Tue Oct 26 10:02:53 PDT 2010


On Oct 26, 2010, at 5:09 AM, Yael.Aharon at nokia.com 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101026/d7bb00af/attachment.html>


More information about the webkit-dev mailing list