summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/svg-unused-filter-on-clippath-mutated-crash.html
blob: 060b2547de59dfb14835532e52747bee8cc5fdc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html class='test-wait'>
<title>Mutating a filter primitive in a filter that isn't used doesn't crash</title>
<link rel='help' href='https://drafts.fxtf.org/filter-effects/#FilterProperty'>
<link rel='bookmark' href='https://crbug.com/1151610'>
<script src='/common/rendering-utils.js'></script>
<svg>
  <filter id='f'>
    <feDiffuseLighting id='dl' lighting-color='currentcolor'/>
  </filter>
  <clipPath id='c' filter='url(#f)'>
    <rect width='100' height='100'/>
  </clipPath>
  <rect width='500' height='500' fill='green' clip-path='url(#c)'/>
</svg>
<script>
waitForAtLeastOneFrame().then(() => {
  var primitive = document.getElementById('dl');
  primitive.parentNode.appendChild(primitive);
  primitive.setAttribute('lighting-color', 'blue');
  document.documentElement.classList.remove('test-wait');
});
</script>