6 //var camelize = function(a,b){
7 // return b.toUpperCase();
10 var fillStyle = function(dom)
13 console.log(dom.nodeName);
15 var style = window.getComputedStyle(dom, null);
16 if (style.display == 'none') {
17 dom.parentElement.removeChild(dom);
21 for(var i=0;i<style.length;i++){
23 //var camel = prop.replace(/\-([a-z])/g, camelize);
24 var val = style.getPropertyValue(prop);
25 //returns[camel] = val;
26 dom.style[prop] = val;
28 for (var i = dom.childNodes.length -1; i--; i> -1) {
29 fillStyle(dom.childNodes[i]);
35 var el = document.querySelector('body');
38 var matches = document.getElementsByTagName('style');
39 for(var i =0;i < matches.length;i++) {
40 matches[i].parentElement.removeChild(matches[i]);