Skip to content

Instantly share code, notes, and snippets.

@grssam
Created July 29, 2013 18:19
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 grssam/6106409 to your computer and use it in GitHub Desktop.
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.
/* -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