OLD | NEW |
1 <script> | 1 <script> |
2 function test() | 2 function test() |
3 { | 3 { |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 var style = document.defaultView.getComputedStyle(document.body, ""); | 6 var style = document.defaultView.getComputedStyle(document.body, ""); |
7 var text = ""; | 7 var text = ""; |
8 for (var i = 0; i != style.length; ++i) { | 8 for (var i = 0; i != style.length; ++i) { |
9 var name = style.item(i); | 9 var name = style.item(i); |
10 if (!name.match(/^font/)) | 10 if (!name.match(/^font/)) |
11 continue; | 11 continue; |
12 var value = style.getPropertyValue(name); | 12 var value = style.getPropertyValue(name); |
13 text += name + ": " + value + ";\n"; | 13 text += name + ": " + value + ";\n"; |
14 } | 14 } |
15 document.getElementById("exposed").textContent = text; | 15 document.getElementById("exposed").textContent = text; |
16 } | 16 } |
17 </script> | 17 </script> |
18 <body onload="test()" style="font-family: monospace, 'Lucida Grande', sans-serif
"> | 18 <body onload="test()" style="font-family: ''"> |
19 <p>Font attributes. The font-family should list three families:</p> | 19 <p>Font attributes. The font-family should list the empty string:</p> |
20 <p id="exposed" style="white-space: pre"></p> | 20 <p id="exposed" style="white-space: pre"></p> |
21 </body> | 21 </body> |
OLD | NEW |