layout/reftests/svg/objectBoundingBox-and-fePointLight-01.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/objectBoundingBox-and-fePointLight-01.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     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 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
     1.9 +  <title>Testcase for objectBoundingBox with fePointLight</title>
    1.10 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=544742 -->
    1.11 +
    1.12 +  <defs>
    1.13 +    <filter id="light" primitiveUnits="objectBoundingBox">
    1.14 +      <feSpecularLighting lighting-color="blue" surfaceScale="5" specularConstant="10" specularExponent="6">
    1.15 +        <!-- Note: for z  the scalefactor is  31,622776601683793319988935444327
    1.16 +                     sqrt(bbox.width*bbox.width + bbox.height*bbox.height)/sqrt(2) -->
    1.17 +        <fePointLight x="0.75" y="1.5" z="-0.15811388300841896659994467722167"/>
    1.18 +      </feSpecularLighting>
    1.19 +      <feComposite operator="in" in2="SourceGraphic"/>
    1.20 +    </filter>
    1.21 +  </defs>
    1.22 +
    1.23 +  <rect x="20" y="20" width="40" height="20" filter="url(#light)" fill="black" stroke="none" />
    1.24 +
    1.25 +</svg>
    1.26 +

mercurial