Skip to content

Instantly share code, notes, and snippets.

@blaja
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blaja/53ee7884db23a2fcbbc7 to your computer and use it in GitHub Desktop.
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.
// 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