1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-filter-contents-01a.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 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 class="reftest-wait" xmlns="http://www.w3.org/2000/svg" onload="startTest()"> 1.9 + <style> 1.10 + .foo feComposite { color-interpolation-filters:sRGB; } 1.11 + </style> 1.12 + 1.13 + <defs id="d"> 1.14 + <filter id="f" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 1.15 + x="0" y="0" width="1" height="1"> 1.16 + <feFlood flood-color="#ff0000" flood-opacity="0.5" result="flood"/> 1.17 + <feComposite width="1" height="1" in="flood" operator="over" in2="SourceGraphic"/> 1.18 + </filter> 1.19 + </defs> 1.20 + 1.21 + <rect width="100" height="100" fill="lime" filter="url(#f)"/> 1.22 + 1.23 + <script> 1.24 + function startTest() { 1.25 + document.addEventListener("MozReftestInvalidate", doTest, false); 1.26 + setTimeout(doTest, 4000); // fallback for running outside reftest 1.27 + } 1.28 + 1.29 + function doTest() { 1.30 + document.getElementById("d").setAttribute("class", "foo"); 1.31 + document.documentElement.removeAttribute('class'); 1.32 + } 1.33 + </script> 1.34 +</svg>