On Tue, Oct 26, 2010 at 7:00 AM,  <yael.aha...@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?
> thanks, Yael

Yes.  In the absence of explicit indications to the contrary (like
differing values for z-index), the drawing order is always the CSS
box-tree order - boxes later in the tree draw above boxes earlier in
the tree.

~TJ
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to