blob: 86528819bc7a0459a3d9c506284fc7d614049a00 [file] [log] [blame]
<!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="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=453019">
<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>