summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/effect-reference-rename-002.html
blob: 86528819bc7a0459a3d9c506284fc7d614049a00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!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>