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.

4m read timeFrom bram.us
Post cover image
Table of contents
The Missing PieceBrowser SupportFeature DetectionBut what about non- <color> and non- <image> values?
3 Comments

Sort: