| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()"> |
| <script xlink:href="../../fast/repaint/resources/repaint.js"/> |
| <text id="text" y="50" display="none"> |
| <tspan id="tspan" x="50" dy="1em">Two lines of text should be visible.</tspan> |
| var tspan1 = document.getElementById("tspan"); |
| result = tspan1.dy.baseVal.getItem(0).value; |
| var tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); |
| tspan2.setAttribute("x", "50"); |
| tspan2.setAttribute("dy", result); |
| tspan2.textContent = "Two lines of text should be visible."; |
| document.getElementById("text").appendChild(tspan2); |
| document.getElementById("text").setAttribute("display", "inline"); |