sfrieson / find-stacking-contexts

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:JavaScript 100.0%