5 testRunner
.dumpAsText();
8 div { background: purple; margin:
1em; color: white; font:
24px 'Lucida Grande'; }
12 Note that background is buggy right now!
13 <div id=
"foo">Test
</div>
15 var ruleList
= document
.defaultView
.getMatchedCSSRules(document
.getElementById('foo'), '');
16 var decl
= ruleList
[0].style
;
17 for (var i
= 0; i
< decl
.length
; i
++) {
18 document
.write(decl
[i
] + ": " + decl
.getPropertyValue(decl
[i
]));
19 document
.write( "<br>");