1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/crashtests/767056-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" 1.5 + xmlns:xlink="http://www.w3.org/1999/xlink" 1.6 + width="100%" 1.7 + class="reftest-wait"> 1.8 + <script> 1.9 + 1.10 +function resize() { 1.11 + // Set the viewBox to the same width as the content area, but slightly 1.12 + // higher. This checks that we don't enter an infinite reflow loop. See 1.13 + // https://bugzilla.mozilla.org/show_bug.cgi?id=767056#c10 1.14 + var viewBox = "0 0 " + window.innerWidth + " " + (window.innerHeight + 1); 1.15 + document.documentElement.setAttribute("viewBox", viewBox); 1.16 + document.documentElement.removeAttribute("class"); 1.17 +} 1.18 + 1.19 +document.addEventListener("MozReftestInvalidate", resize, false); 1.20 +setTimeout(resize, 3000); // For non-gecko 1.21 + 1.22 + </script> 1.23 + <rect width="100%" height="100%"/> 1.24 +</svg>