4 <title>Test for bug
1375944</title>
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css">
9 <iframe id=
"subframe"></iframe>
13 SimpleTest
.waitForExplicitFinish();
15 async
function runTest() {
16 let f
= new FontFace("Ahem", "url(Ahem.ttf)", {});
18 is(f
.status
, "loaded", "Loaded Ahem font");
20 let subframe
= document
.getElementById("subframe");
21 subframe
.src
= "file_bug1375944.html";
22 await
new Promise(resolve
=> subframe
.onload
= resolve
);
23 let elem
= subframe
.contentDocument
.getElementById("test");
24 is(elem
.getBoundingClientRect().width
, 64,
25 "The font should be loaded properly");