W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Tommy Hodgins via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Dec 2018 08:39:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-448513288-1545208796-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC