from : https://stackoverflow.com/questions/5195303/set-css-property-in-javascript
var styleBlock = document.createElement('style'),
classes;
var blockClass
document.head.appendChild(styleBlock);
classes = styleBlock.sheet;
console.log(classes)
classes.insertRule(".dd { position:absolute; bottom:0; }");
stylesheet.insertRule(rule[, index])
index
console.log(classes)...
+ CSSStyleSheet
cssRules : CSSRuleList {0: CSSStyleRule, length: 1 }
disabled : false
+ href : null
+ media : MediaList {mediaText: "", length: 0 }
ownerNode : style
ownerRule : null
parentStyleSheet : null
+ rules : CSSRuleList
title : null
type : "text/css"
+ __proto__ : CSSStyleSheet