| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) { | 6 if (window.testRunner) { |
| 7 window.testRunner.dumpAsText(); | 7 window.testRunner.dumpAsText(); |
| 8 } | 8 } |
| 9 </script> | 9 </script> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <div id="unstyled">Unstyled Font Family</div> | 12 <div id="unstyled">Unstyled Font Family</div> |
| 13 <div id="initialFontFamily" style="font-family: initial;">Initial Font Family</d
iv> | 13 <div id="initialFontFamily" style="font-family: initial;">Initial Font Family</d
iv> |
| 14 <div id="initialFont" style="font: initial;">Initial Font</div> | 14 <div id="initialFont" style="font: initial;">Initial Font</div> |
| 15 <hr> | 15 <hr> |
| 16 <p id="description"></p> | 16 <p id="description"></p> |
| 17 <div id="console"></div> | 17 <div id="console"></div> |
| 18 <script> | 18 <script> |
| 19 description("Test for <a href=\"https://bugs.webkit.org/show_bug.cgi?id=19085\">
Bug 19085: font-family: initial sets font-family differently than font: initial<
/a>"); | 19 description("Test for <a href=\"https://bugs.webkit.org/show_bug.cgi?id=19085\">
Bug 19085: font-family: initial sets font-family differently than font: initial<
/a>"); |
| 20 | 20 |
| 21 var initialFontElement = document.getElementById("initialFont"); | 21 var initialFontElement = document.getElementById("initialFont"); |
| 22 var initialFontFamilyElement = document.getElementById("initialFontFamily"); | 22 var initialFontFamilyElement = document.getElementById("initialFontFamily"); |
| 23 var unstyledElement = document.getElementById("unstyled"); | 23 var unstyledElement = document.getElementById("unstyled"); |
| 24 | 24 |
| 25 var initialFont = document.defaultView.getComputedStyle(initialFontElement, null
).getPropertyValue("font-family"); | 25 var initialFont = document.defaultView.getComputedStyle(initialFontElement, null
).getPropertyValue("font-family"); |
| 26 var initialFontFamily = document.defaultView.getComputedStyle(initialFontFamilyE
lement, null).getPropertyValue("font-family"); | 26 var initialFontFamily = document.defaultView.getComputedStyle(initialFontFamilyE
lement, null).getPropertyValue("font-family"); |
| 27 var unstyled = document.defaultView.getComputedStyle(unstyledElement, null).getP
ropertyValue("font-family"); | 27 var unstyled = document.defaultView.getComputedStyle(unstyledElement, null).getP
ropertyValue("font-family"); |
| 28 | 28 |
| 29 shouldBe("initialFontFamily", "unstyled"); | 29 shouldBe("initialFontFamily", "unstyled"); |
| 30 shouldBe("initialFont", "unstyled"); | 30 shouldBe("initialFont", "unstyled"); |
| 31 </script> | 31 </script> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |