Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / font-face-not-in-document.svg
blobe664c4eda9d1e0679243897967773b835c267cd5
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <font id="f">
3 <font-face font-family="epic" units-per-em="1000" />
4 <glyph unicode="PASS" horiz-adv-x="1000" />
5 </font>
7 <text id="t" y="50" font-size="50" font-family="epic">PASS</text>
8 <text y="72">This tests that &lt;font-face&gt; elements that are not in the document have no effect.</text>
9 <text y="96">Test result: <tspan id="result"></tspan></text>
10 <script>
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"));
19 </script>
20 </svg>