Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<link rel="match" href="image-light-dark-ref.html">
<style>
div:empty {
width: 100px;
height: 100px;
background-image: light-dark(
url("/images/green.png"),
url("/images/red.png")
);
}
</style>
<div style="color-scheme: dark"></div>
<div style="color-scheme: light"></div>
<div style="color-scheme: dark"><div></div></div>
<div style="color-scheme: light"><div></div></div>