/find-stacking-contexts

An algorithm to identify the parent z-index stacking contexts of a given DOM node/element.

Primary LanguageJavaScript

Find Stacking Contexts

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.