Created
August 16, 2018 07:36
-
-
Save webdesignberlin/5749cf12a321d44dca48807767047925 to your computer and use it in GitHub Desktop.
Find z-index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find max used z-index | |
[...document.querySelectorAll('*')].map(e => ~~getComputedStyle(e,null).getPropertyValue('z-index')) | |
// Find elements with z-index | |
[...document.querySelectorAll('*')].filter(e => getComputedStyle(e,null).getPropertyValue('z-index') > 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment