-
-
Save blaja/53ee7884db23a2fcbbc7 to your computer and use it in GitHub Desktop.
Simple way to exclude webkit prefixed props in Chrome using some ES6 features.
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
// Filter out CSS properties without webkit prefixes in Chrome console | |
// To find "hidden" properties of an object we need to use Object.getOwnPropertyNames. | |
Object.getOwnPropertyNames(document.body.style).filter( | |
property => !property.startsWith('webkit') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment