Re: [csswg-drafts] [css-images-4] Add `light-dark-image()`, or generalize `light-dark()` for images too? (#12513)

Right, we *cannot* actually infer types in general. There's too much trivial overlap between types (`red` might be an animation name or a color, for example), and there's too much flexibility in grammars to reliably get hints from placement.

Anyway, I'm fine either way for the function here. If several people are leaning towards the "single function, takes two colors *or* two images", great, that's fine. Perfectly unambiguous, just adds a touch of complexity to the impl but nothing serious.

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


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

Received on Wednesday, 23 July 2025 17:33:22 UTC