chromium/third_party/blink/web_tests/svg/filters/feSpecularLight-premultiplied.svg

<?xml version="1.0" standalone="no"?>
<!-- Test for https://bugs.webkit.org/show_bug.cgi?id=89116 -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
    <defs>
      <filter id = "f1">
          <feGaussianBlur in="SourceAlpha" stdDeviation="20" result = "blur1"/>
          <feSpecularLighting result="specOut" in="blur1" specularExponent="20" lighting-color="#00ff00">
              <fePointLight x="200" y="200" z="300"/>
          </feSpecularLighting>
          <feComposite in="SourceGraphic" in2="specOut" operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/>
      </filter>
      <mask id="m1">
        <rect width="100" height="100" fill="white"/>
      </mask>
    </defs>

    <rect width="100" height="100" fill="#00ff00"/>
    <!--
      To avoid having platform specific results:
        * apply the lighting filter to the 200x200 group
        * mask the top-left 100x100 square
        * since the filter target has no data in that area, the masked filter
          result should only contain semi-transparent light color (#00ff00)
        * overlaying #00ff00 on top of the green rectangle above should have no
          effect -> hence we can use a ref-test
    -->
    <g filter="url(#f1)" mask="url(#m1)">
      <rect x="150" y="0" width="50" height="200" fill="black"/>
      <rect x="0" y="150" width="200" height="50" fill="black"/>
    </g>
</svg>