I was wondering if it was possible to access custom rules placed into a stylesheet. For instance, take:
p {
line-height: 2em;
-js-min-line-height: 1.4em;
}
I've tried traversing the stylesheet object and grabbing the CSS text but the browser, as it probably should do, does not return the text of properties it doesn't recognize:
for styleSheet in document.styleSheets
for rule in styleSheet.cssRules
console.log rule.cssText
Simply returns:
p { line-height: 1.4; }