Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Filters: reference to renamed SVG filter</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="match" href="reference/effect-reference-rename-002-ref.html">
<meta name="assert" content="Check that a SVG filter, initially named differently than what an element expects, gets applied to such element once renamed, after rendering the first frame."/>
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<body>
<svg height="0">
<filter id="NotMyFilter">
<feColorMatrix type="hueRotate" values="90"/>
</filter>
</svg>
<div style="width: 100px; height: 100px; background-color: red; filter: url(#MyFilter);"></div>
<script>
waitForAtLeastOneFrame().then(function() {
document.getElementById("NotMyFilter").id = "MyFilter";
takeScreenshot();
});
</script>
</body>
</html>