1 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
3 <font-face font-family=
"epic" units-per-em=
"1000" />
4 <glyph unicode=
"PASS" horiz-adv-x=
"1000" />
7 <text id=
"t" y=
"50" font-size=
"50" font-family=
"epic">PASS
</text>
8 <text y=
"72">This tests that
<font-face
> elements that are not in the document have no effect.
</text>
9 <text y=
"96">Test result:
<tspan id=
"result"></tspan></text>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var f = document.getElementById(
"f");
15 f.parentNode.removeChild(f);
17 var pass = document.getElementById(
"t").getEndPositionOfChar(
0).x !=
50;
18 document.getElementById(
"result").appendChild(document.createTextNode(pass ?
"PASS" :
"FAIL"));