Created
February 18, 2017 18:01
-
-
Save yefremov/ec040994f7ce44423fedc44844dc945a to your computer and use it in GitHub Desktop.
Cross-browser method to get all CSS properties after all active sheets were applied and calculated
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
var getStyles = window.getComputedStyle | |
? function (node) { return window.getComputedStyle(node, null) }; | |
: function (node) { return node.currentStyle }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment