Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / computed-style-font-family.html
blob83bd9a2a8645d855d15ab2db9c102748fa90494d
1 <script>
2 function test()
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var style = document.defaultView.getComputedStyle(document.body, "");
7 var text = "";
8 for (var i = 0; i != style.length; ++i) {
9 var name = style.item(i);
10 if (!name.match(/^font/))
11 continue;
12 var value = style.getPropertyValue(name);
13 text += name + ": " + value + ";\n";
15 document.getElementById("exposed").textContent = text;
17 </script>
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>
21 </body>