summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/currentColor-override-lighting.svg
blob: bf91e809f07ddd7d02a5113b2bf94abaf904f7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<svg xmlns="http://www.w3.org/2000/svg">
  <!-- the light source is a fePointLight element -->
  <filter id="lightMe1" style="color: red" lighting-color="currentColor">
    <feDiffuseLighting
        in="SourceGraphic"
        result="light"
        style="color: lime;"
        lighting-color="inherit">
      <fePointLight x="0" y="0" z="100" />
    </feDiffuseLighting>

    <feComposite in="SourceGraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
  </filter>
  <rect width="100%" height="100%" fill="white" filter="url(#lightMe1)" />
</svg>