<!doctype html>
<title>
Changing style on a <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>