Re: [csswg-drafts] [css-values-5] Accept `<whole-value>` as argument of `first-valid()` (#9590)

> Accept `<whole-value>` as argument of `first-valid()`

I thought the same in https://github.com/w3c/csswg-drafts/commit/5fc63f5825d2aeca87a35f59146eac2fde844b80#r131685583

But e.g. consider `color: first-valid(invalid(), green)`. This needs to be valid (and resolve to green), so we can't require `invalid()` to be a `<whole-value>`.

> Should `first-valid(toggle(red; green))` be invalid?

No, it's valid, since  `toggle(red; green)` is a `<declaration-value>` (being a `<whole-value>` is not exclusive).

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


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

Received on Friday, 10 November 2023 11:31:12 UTC