Re: [csswg-drafts] [css-values]: Express conditional values in a more terse way (#5009)

Right. Those were exactly my points. :) 

And I think they back up my argument that we can consider the `switch()` function & the `available-inline-size` value as two distinct features that work together – exactly like `calc()` and `var()` work today: 

1. A math-like function that is entirely identical to `cond()` and works on ordinary values without IACVT
2. New values like `available-inline-size` which would be useful in a function like that (and maybe also on their own?), but would trigger IACVT

One function can handle both `switch()` and `cond()` use-cases, depending what values are used for comparison. The need for IACVT is tied to the values, not to the function itself. 

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


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

Received on Wednesday, 24 February 2021 16:57:58 UTC