1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/stroke-width-percentage-02b.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 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 + id="outer" style="width:50px; height:50px;"> 1.10 + <title>Test percentage stroke-width repaints after viewport size change</title> 1.11 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=875069 --> 1.12 + <script> 1.13 + 1.14 +function doTest() { 1.15 + document.getElementById("outer").style.width = "100px"; 1.16 + document.getElementById("outer").style.height = "100px"; 1.17 + document.documentElement.removeAttribute('class'); 1.18 +} 1.19 + 1.20 +document.addEventListener("MozReftestInvalidate", doTest, false); 1.21 +setTimeout(doTest, 4000); // fallback for running outside reftest 1.22 + 1.23 + </script> 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>