chiprook
← Software
SoftwareOctober 28, 2026, 15:30

CSS light-dark() now swaps images based on color scheme

The CSS light-dark() function now accepts images as well as colors, picking one of two arguments based on the element's color-scheme. As of September 14, 2026 it works in Chrome, Edge, Firefox and Safari, reaching Baseline newly available status.

CSS light-dark() now swaps images based on color scheme
#Chrome#Firefox#Safari#CSS
Read next
Software

CSS contrast-color() picks white or black text for any background

Software

CSS field-sizing becomes Baseline: inputs now grow with content

Software

CSS gains progress(), alpha() and revert-rule across all engines

Software

CSS gains shape(), border-shape and corner-shape to break the web out of boxes