1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/filter-invalidation-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 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" version="1.1" class="reftest-wait"> 1.9 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=463939 --> 1.10 + <title>Test that the area that's covered by a filtered element is invalidated when it moves</title> 1.11 + <filter id="filter"> 1.12 + <feGaussianBlur stdDeviation="0.1"/> 1.13 + </filter> 1.14 + <script type="text/javascript">//<![CDATA[ 1.15 + 1.16 +function hide_red_rect() 1.17 +{ 1.18 + document.getElementById("r").setAttribute("y", "-200%"); 1.19 + document.documentElement.removeAttribute('class'); 1.20 +} 1.21 + 1.22 +document.addEventListener("MozReftestInvalidate", hide_red_rect, false); 1.23 +setTimeout(hide_red_rect, 4000); // fallback for running outside reftest 1.24 + 1.25 + //]]></script> 1.26 + <rect width="100%" height="100%" fill="lime"/> 1.27 + <rect width="100%" height="100%" fill="red" id="r" filter="url(#filter)"/> 1.28 +</svg>