5 testRunner
.dumpAsText();
6 var style
= document
.defaultView
.getComputedStyle(document
.body
, "");
8 for (var i
= 0; i
!= style
.length
; ++i
) {
9 var name
= style
.item(i
);
10 if (!name
.match(/^font/))
12 var value
= style
.getPropertyValue(name
);
13 text
+= name
+ ": " + value
+ ";\n";
15 document
.getElementById("exposed").textContent
= text
;
18 <body onload=
"test()" style=
"font-family: monospace, 'Lucida Grande', sans-serif">
19 <p>Font attributes. The font-family should list three families:
</p>
20 <p id=
"exposed" style=
"white-space: pre"></p>