Re: [csswg-drafts] [css-values-4] Allow `inherit` in `calc()` (and friends), `color-mix()`, RCS (#9757)

@LeaVerou Ah I see. Thanks for clarifying that.

<details><summary>some tangential thoughts about if/or to provide a solution for this</summary>

I know there's been discussion around an inline `if` function (i.e. `if(condition, ifTrue, ifFalse)`).

I wonder if we could use that or something similar to optimize this (down the road).

Something like a logical OR would be ideal here, like `or(inherit, FALLBACK)`. We could overload the `if()` to support this as well with a 2-arg usage instead of its usual 3-arg usage, but I think that would cause some confusion.

That's a bit unrelated to this issue specifically, so we can save that discussion for a separate ticket once both are implemented.

</details>

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


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

Received on Thursday, 4 January 2024 19:50:33 UTC