CSS `light-dark()` is about to support images!

https://www.bram.us/2026/03/19/more-easy-light-dark-mode-switching-light-dark-is-about-to-support-images/

Shipping in Firefox 150. Starting tomorrow, available behind a flag in Chromium 148.

More Easy Light-Dark Mode Switching: light-dark() is about to support images!

CSS light-dark() is being extended to support images.

Bram.us
@bramus I wish it supported arbitrary data types, because colors and images are too restrictive.
@aartaka See the last section of the post ;)
@bramus oh, sorry 😅 But yeah, it makes sense, though there’s nothing impossible in computers.