https://bugzilla.wikimedia.org/show_bug.cgi?id=49275

--- Comment #3 from Krinkle <[email protected]> ---
Instead of an arms race between z-index, the much easier solution would be to
ensure the DOM structure of these two elements are nested properly so that
their natural order is correct. z-index can be used to adjust display, but it
is not capable (by design) to transcend the relative DOM position.

I haven't tested the following so this exact example could be wrong, but
generally it means that in the following sample:

 <div style="position: relative;" id="foo"> </div> 
 <div style="position: relative;" id="bar"> </div> 


Naturally #bar will be on top of #foo as it comes later in the DOM. Though #foo
and #bar can be interchanged at the root (through their common parent), any
child of #bar will always be on top of any child of #foo.

So not only is DOM ordering easier to manage (due to not having to worry about
conflicting numbers), in some cases it is the only way.

I'll see what the easier way to fix this is, we can perfect it later if
suboptimal.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to