Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/svg/filters/reftest.list
<!--
Any copyright is dedicated to the Public Domain.
-->
<!--
This test verifies that fePointLight stays in the right place when the user
zooms the page.
If the test passes, you should see a green box with its center illuminated
by a point light. If the test fails, the illumination will be off-center.
This test checks that SVG filters transform points in user space to points
in filter space correctly.
The root SVG element specifies a width and height to prevent scrollbars
from appearing when the page is zoomed.
-->
reftest-zoom="2.0" width="100" height="100">
<defs>
<filter id="illuminate-center">
<feDiffuseLighting in="SourceGraphic" result="light" lighting-color="white">
<fePointLight x="50" y="50" z="50"/>
</feDiffuseLighting>
<feComposite in="SourceGraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/>
</filter>
</defs>
<rect width="100" height="100" fill="green" filter="url(#illuminate-center)"/>
</svg>