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

Hmm, a generic value switcher like that might make sense, yeah. Would let us hit the use-case pretty simply, without needing to wait for future Houdini stuff, and with a pretty minor syntax tax overall.  Mechanics are no more complex than any other variable-related stuff.

Like I'd said earlier, pretty sure we'd need to use a `;` as the value separator there, but otherwise yeah it's all good. Functionally identical to just setting several variables in the MQ, but letting you avoid naming the temporary values, and keep them clustered at point-of-use rather than spread across MQs.

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

Received on Wednesday, 29 April 2020 15:54:43 UTC