[webkit-dev] webkit-dev Digest, Vol 65, Issue 29

Tab Atkins Jr. jackalmage at gmail.com
Tue Oct 26 10:12:29 PDT 2010

On Tue, Oct 26, 2010 at 7:00 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?
> 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.


More information about the webkit-dev mailing list