layout/reftests/svg/dynamic-text-07.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/dynamic-text-07.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="m();">
     1.9 +  <title>Testcase to check whitespace handling</title>
    1.10 +
    1.11 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=717870 -->
    1.12 +
    1.13 +  <text id="t" x="10" y="50" font-size="50">A </text>
    1.14 +  <script>
    1.15 +    function m()
    1.16 +    {
    1.17 +      // Force frame construction
    1.18 +      document.documentElement.getBoundingClientRect();
    1.19 +
    1.20 +      // A dynamic change
    1.21 +      document.getElementById("t").appendChild(document.createTextNode("B"));
    1.22 +      
    1.23 +      document.documentElement.removeAttribute("class");
    1.24 +    }
    1.25 +  </script>
    1.26 +</svg>

mercurial