layout/reftests/svg/stroke-width-percentage-02a.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/stroke-width-percentage-02a.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     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">
     1.9 +  <title>Test percentage stroke-width repaints after viewport size change</title>
    1.10 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 -->
    1.11 +  <script>
    1.12 +
    1.13 +function doTest() {
    1.14 +  document.getElementById("inner").setAttribute("width", "100");
    1.15 +  document.getElementById("inner").setAttribute("height", "100");
    1.16 +  document.documentElement.removeAttribute('class');
    1.17 +}
    1.18 +
    1.19 +document.addEventListener("MozReftestInvalidate", doTest, false);
    1.20 +setTimeout(doTest, 4000); // fallback for running outside reftest
    1.21 +
    1.22 +  </script>
    1.23 +  <svg id="inner" width="50" height="50">
    1.24 +    <!-- Don't give the line's x/y attributes percentages since that
    1.25 +         may trigger reflow in which case this test wouldn't be
    1.26 +         testing what we intend!
    1.27 +    -->
    1.28 +    <line x1="50" x2="50" y2="50" stroke="blue" stroke-width="100%"/>
    1.29 +  </svg>
    1.30 +</svg>

mercurial