4 <title>Test for Bug
26183 - [@font-face] font-family descriptor with multiple names should be discarded
</title>
12 font-family: myfont1, myfont2;
16 <script src=
"../../resources/js-test.js"></script>
18 <body onload=
"test()">
19 <div id=
"description"></div>
21 <span id=
"testText" class=
"testtext" style=
"font-family: myfont1, Arial">Text iii
</span><br/>
23 <span id=
"mustMatch" class=
"testtext" style=
"font-family: Arial">Text iii
</span><br/>
25 <span id=
"mustNotMatch" class=
"testtext" style=
"font-family: Courier">Text iii
</span><br/>
26 <div id=
"console"></div>
28 if (window
.testRunner
)
29 window
.testRunner
.dumpAsText();
31 description("font-family descriptor in @font-face rule can take only one family. Hence the @font-face rule in this test must be ignored.");
35 shouldBeTrue("document.getElementById('testText').offsetWidth == document.getElementById('mustMatch').offsetWidth");
36 shouldBeTrue("document.getElementById('testText').offsetWidth != document.getElementById('mustNotMatch').offsetWidth");