Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / ems-display-none.svg
blobb8955feca32e4f086e838346c11b12f889fa6ab1
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
4 <g font-size="40">
5 <text id="text" y="50" display="none">
6 <tspan id="tspan" x="50" dy="1em">Two lines of text should be visible.</tspan>
7 </text>
8 </g>
9 <script>
10 function repaintTest() {
11 var tspan1 = document.getElementById("tspan");
12 var result = 0;
13 try {
14 result = tspan1.dy.baseVal.getItem(0).value;
15 } catch(e) { }
17 var tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
18 tspan2.setAttribute("x", "50");
19 tspan2.setAttribute("dy", result);
20 tspan2.textContent = "Two lines of text should be visible.";
21 document.getElementById("text").appendChild(tspan2);
22 document.getElementById("text").setAttribute("display", "inline");
24 </script>
25 </svg>