Created
July 29, 2013 18:19
-
-
Save grssam/6106409 to your computer and use it in GitHub Desktop.
Run this script in Scratchpad in Latest Nightly to get a key-value pair of all the prefix-free properties vs their possible standard values.
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
/* -sp-context: browser */ | |
let domUtils = Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils) | |
let properties = {}; | |
domUtils.getCSSPropertyNames(domUtils.INCLUDE_ALIASES) | |
.sort() | |
.filter(x=>!x.startsWith("-moz")) | |
.forEach(x=> { | |
properties[x] = domUtils.getCSSValuesForProperty(x) | |
.sort() | |
.filter(x=>!x.startsWith("-moz")); | |
}); | |
JSON.stringify(e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment