| Index: LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox-mutation.html
|
| diff --git a/LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox-mutation.html b/LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox-mutation.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..baa3e3ce37203c5e3db71735a51bc96cdec1ca8c
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/filters/fePointLight-primitiveUnits-objectBoundingBox-mutation.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/run-after-display.js"></script>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +window.onload = function() {
|
| + // Wait for a frame, then mutate the filter.
|
| + runAfterDisplay(function() {
|
| + var pointLight = document.getElementById('light');
|
| + pointLight.setAttribute('x', '0.5');
|
| + pointLight.setAttribute('y', '0.5');
|
| + pointLight.setAttribute('z', '10');
|
| + // Change primitive units after having updated light position.
|
| + document.querySelector('filter').setAttribute('primitiveUnits', 'objectBoundingBox');
|
| + if (window.testRunner)
|
| + runAfterDisplay(function() { testRunner.notifyDone(); });
|
| + });
|
| +};
|
| +</script>
|
| +<svg>
|
| + <filter id="f" x="0" y="0" width="1" height="1">
|
| + <feDiffuseLighting lighting-color="green">
|
| + <fePointLight id="light" x="0" y="0" z="-50"/>
|
| + </feDiffuseLighting>
|
| + </filter>
|
| + <rect width="100" height="100" fill="red" filter="url(#f)"/>
|
| +</svg>
|
|
|