chromium/third_party/blink/web_tests/paint/invalidation/svg/exs-display-none.svg

<?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="runRepaintAndPixelTest()">
    <script xlink:href="../resources/text-based-repaint.js"/>
    <g font-size="40">
        <text id="text" y="50" display="none">
            <tspan id="tspan" x="50" dy="2ex">Two lines of text should be visible.</tspan>
        </text>
    </g>
    <script>
        function repaintTest() {
            var tspan1 = document.getElementById("tspan");
            var result = 0;
            try {
                result = tspan1.dy.baseVal.getItem(0).value;
            } catch(e) { }

            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");
        }
    </script>
</svg>