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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"
     6      id="outer" style="width:50px; height:50px;">
     7   <title>Test percentage stroke-width repaints after viewport size change</title>
     8   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 -->
     9   <script>
    11 function doTest() {
    12   document.getElementById("outer").style.width = "100px";
    13   document.getElementById("outer").style.height = "100px";
    14   document.documentElement.removeAttribute('class');
    15 }
    17 document.addEventListener("MozReftestInvalidate", doTest, false);
    18 setTimeout(doTest, 4000); // fallback for running outside reftest
    20   </script>
    21   <!-- Don't give the line's x/y attributes percentages since that
    22        may trigger reflow in which case this test wouldn't be
    23        testing what we intend!
    24   -->
    25   <line x1="50" x2="50" y2="50" stroke="blue" stroke-width="100%"/>
    26 </svg>

mercurial