Given a div, is there an elegant way to find if the z-index values of all the children elements of the div are within a specific range.(ex: 200-299). So for the given example code, I need to test if the div with class name childDivClass & image with class name imgClass are within a z-index range of 200 to 299.
<div class="rootDivClass">
<div class="childDivClass">
<img class=imgClass">
</img>
</div>
</div>
The general way to calculate an element's
z-indexisYou can check the parent and children separately, using a function to extract the
z-index.I don't think there's an easy way to get a parent element and all it's children in one selection, but you could add a custom command