Re: [csswg-drafts] [css-values-5] Using `if()` to do dark/light switching of image urls. (#10577)

Besides images, other use cases involve numbers or keywords. For example, you may want bolder text in dark mode, or you may want to define a color with one color component varying based on color scheme.

I wonder if we could introduce a third argument to `light-dark()` that is modeled after `attr()`'s `<attr-type>` and defaults to color.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10577#issuecomment-3094857280 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 20 July 2025 23:24:56 UTC