Re: [csswg-drafts] [css-values] if() function (#3455)

> Are you just pitching your JS-in-CSS solution?

I didn't invent [CSS variables](https://drafts.csswg.org/css-variables/), I wrote a demo based on what you described that leveraged the built-in features of CSS. Everything I have done is something that can be done with CSS as it currently is specced and supported in browsers. I'm pitching using CSS.

> Sure you can simulate this in JS by parsing CSS vars. How is that relevant? 🤷‍♂️

Isn't this why CSS variables exist? If this gets close to what you're hoping to have someday in CSS, I wonder to what extent you can make use of CSS variables to simulate this sort of functionality in the meantime.

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

Received on Wednesday, 19 December 2018 08:39:59 UTC