summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filters/svg-filter-chains/second-filter-uses-SourceGraphic.svg
blob: f8dc040b83deceea7fe9c9e074e50d6e3168edf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg">
  <filter id="blur">
    <!-- Blur the red rect. -->
    <feGaussianBlur stdDeviation="3"/>
  </filter>
  <filter id="hue-rotate">
    <feFlood flood-color="#0000ff"/>
    <!-- Turn the red rect into a green rect. feColorMatrix should use the
         result of the #blur filter, not feFlood, as its SourceGraphic. -->
    <feColorMatrix in="SourceGraphic" type="hueRotate" values="90"/>
  </filter>
  <rect x="20" y="20" width="100" height="100" fill="#ff0000" filter="url(#blur) url(#hue-rotate)"/>
</svg>