layout/reftests/svg/objectBoundingBox-and-fePointLight-01.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

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
michael@0 6 <title>Testcase for objectBoundingBox with fePointLight</title>
michael@0 7 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=544742 -->
michael@0 8
michael@0 9 <defs>
michael@0 10 <filter id="light" primitiveUnits="objectBoundingBox">
michael@0 11 <feSpecularLighting lighting-color="blue" surfaceScale="5" specularConstant="10" specularExponent="6">
michael@0 12 <!-- Note: for z the scalefactor is 31,622776601683793319988935444327
michael@0 13 sqrt(bbox.width*bbox.width + bbox.height*bbox.height)/sqrt(2) -->
michael@0 14 <fePointLight x="0.75" y="1.5" z="-0.15811388300841896659994467722167"/>
michael@0 15 </feSpecularLighting>
michael@0 16 <feComposite operator="in" in2="SourceGraphic"/>
michael@0 17 </filter>
michael@0 18 </defs>
michael@0 19
michael@0 20 <rect x="20" y="20" width="40" height="20" filter="url(#light)" fill="black" stroke="none" />
michael@0 21
michael@0 22 </svg>
michael@0 23

mercurial