Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
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 <title>Test percentage stroke-width repaints after viewport size change</title>
7 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 -->
8 <script>
10 function doTest() {
11 document.getElementById("inner").setAttribute("width", "100");
12 document.getElementById("inner").setAttribute("height", "100");
13 document.documentElement.removeAttribute('class');
14 }
16 document.addEventListener("MozReftestInvalidate", doTest, false);
17 setTimeout(doTest, 4000); // fallback for running outside reftest
19 </script>
20 <svg id="inner" width="50" height="50">
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>
27 </svg>