blob: 47204ce9a177791475a74538126b9297fa8f291d [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div id="target"></div>
<script>
test(() => {
target.style.backgroundImage = 'url(filesystem://invalid_url.png)';
// Force multiple style recalcs so that the image gets cached and reused.
getComputedStyle(target).backgroundImage;
target.style.color = 'green';
getComputedStyle(target).backgroundImage;
}, "Don't crash when using cached CSS images with invalid URLs");
</script>