The CSS `light-dark()` function is being extended beyond colors to support `<image>` values, allowing developers to swap background images, masks, and logos based on color scheme in a single declaration. This eliminates the need for repetitive `@media (prefers-color-scheme)` blocks and respects local `color-scheme` overrides.
Table of contents
The Missing PieceBrowser SupportFeature DetectionBut what about non- <color> and non- <image> values?3 Comments
Sort: