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

> I only used the semicolon for the index

Using the semicolons allow commas to pass through the _switch_, which is better than the "_toggle-values could also contain var() functions, if the switch is resolved before the vars are substituted/evaluated_" hack that I suggested in my proposal.

Then, the post-index arguments can be `<declaration-value>` instead of `<toggle-value>`.

I'm unaware if other functions using the semicolon as a separator have been suggested.

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

Received on Friday, 8 May 2020 15:25:52 UTC