Created
February 24, 2017 04:55
-
-
Save jserrao/47b2e122822aeaf4d04ad1357c2f9861 to your computer and use it in GitHub Desktop.
Read a pseudo class in JS
This file contains hidden or 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
// How to read a pseudo class in JS | |
window.getComputedStyle( | |
document.querySelector('.element'), ':before' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment