Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<html class="reftest-wait">
<title>JPEG XL CSS background-image</title>
<link rel="match" href="css-background-image-ref.html">
<script src="/common/reftest-wait.js"></script>
<style>
#bg {
background-image: url(resources/3x3_srgb_lossless.jxl);
background-size: cover;
image-rendering: pixelated;
width: 120px; height: 120px;
}
</style>
<div id="bg"></div>
<script>
new Promise(r => {
const img = new Image();
img.onload = r;
img.onerror = r;
img.src = "resources/3x3_srgb_lossless.jxl";
}).then(takeScreenshot);
</script>
</html>