summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/felighting-no-light-source-style-update-crash.html
blob: dfc255df3d840449f4f66ea3ef4b477a69528d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<title>
  Changing style on a &lt;fe*Lighting> without a light source shouldn't crash
</title>
<script src="/common/rendering-utils.js"></script>
<svg>
  <filter id="f">
    <feSpecularLighting/>
    <feDiffuseLighting/>
  </filter>
  <rect width="100" height="100" fill="green"/>
  <rect width="100" height="100" fill="red" filter="url(#f)"/>
</svg>
<script>
  waitForAtLeastOneFrame().then(() => {
    let filter = document.querySelector('filter');
    filter.style['color-interpolation-filters'] = 'sRGB';
  });
</script>