Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/filter-effects/svg-mutation-single-to-multiple-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<title>Filter Effects: extending the filter chain with an additional function on SVG element</title>
<link rel="match" href="reference/green-100x100.html">
<script src="/common/rendering-utils.js"></script>
<script src="/common/reftest-wait.js"></script>
<svg>
<rect width="100" height="100" fill="red"/>
<rect id="target" width="50" height="100" fill="rgb(71.79%, 28.82%, 0%)"
filter="hue-rotate(90deg)"/>
</svg>
<script>
waitForAtLeastOneFrame().then(() => {
let rect = document.getElementById("target");
rect.setAttribute("filter", "hue-rotate(90deg) drop-shadow(50px 0 green)");
takeScreenshot();
});
</script>