Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/image-light-dark.html - WPT Dashboard Interop Dashboard
<!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>