layout/reftests/svg/dynamic-filter-contents-01a.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

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 class="reftest-wait" xmlns="http://www.w3.org/2000/svg" onload="startTest()">
     6   <style>
     7   .foo feComposite { color-interpolation-filters:sRGB; }
     8   </style>
    10   <defs id="d">
    11     <filter id="f" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" 
    12             x="0" y="0" width="1" height="1">
    13       <feFlood flood-color="#ff0000" flood-opacity="0.5" result="flood"/>
    14       <feComposite width="1" height="1" in="flood" operator="over" in2="SourceGraphic"/>
    15     </filter>
    16   </defs>
    18   <rect width="100" height="100" fill="lime" filter="url(#f)"/>
    20   <script>
    21   function startTest() {
    22     document.addEventListener("MozReftestInvalidate", doTest, false);
    23     setTimeout(doTest, 4000); // fallback for running outside reftest
    24   }
    26   function doTest() {
    27     document.getElementById("d").setAttribute("class", "foo");
    28     document.documentElement.removeAttribute('class');
    29   }
    30   </script>
    31 </svg>

mercurial