| <title>Test for Bug 26183 - [@font-face] font-family descriptor with multiple names should be discarded</title> |
| font-family: myfont1, myfont2; |
| <script src="../js/resources/js-test-pre.js"></script> |
| <div id="description"></div> |
| <span id="testText" class="testtext" style="font-family: myfont1, Arial">Text iii</span><br/> |
| <span id="mustMatch" class="testtext" style="font-family: Arial">Text iii</span><br/> |
| <span id="mustNotMatch" class="testtext" style="font-family: Courier">Text iii</span><br/> |
| if (window.layoutTestController) |
| window.layoutTestController.dumpAsText(); |
| description("font-family descriptor in @font-face rule can take only one family. Hence the @font-face rule in this test must be ignored."); |
| shouldBeTrue("document.getElementById('testText').offsetWidth == document.getElementById('mustMatch').offsetWidth"); |
| shouldBeTrue("document.getElementById('testText').offsetWidth != document.getElementById('mustNotMatch').offsetWidth"); |
| <script src="../js/resources/js-test-post.js"></script> |