This is an algorithm based off the MDN stacking context documentation to find all the parent stacking contexts of a given element.
The idea of this package is to make it easier to debug why your z-index may not be applied as you might expect it to.
An algorithm to identify the parent z-index stacking contexts of a given DOM node/element.
JavaScript
This is an algorithm based off the MDN stacking context documentation to find all the parent stacking contexts of a given element.
The idea of this package is to make it easier to debug why your z-index may not be applied as you might expect it to.