W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2020

Re: [csswg-drafts] [css-values] Iverson bracket functions (#4731)

From: jimmyfrasche via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Feb 2020 20:02:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-582586482-1580932956-sysbot+gh@w3.org>
I don't expect much day-to-day code to have as complicated a condition, no.

Logical conditions would be useful in real code for stuff like `if(media(something) or var(--force))`. I expect them to be relatively common uses of if().

I expect they'd get the most use in css frameworks that define a lot of stuff with custom properties that act as knobs.

At some point, I'd hope that we could define reusable custom calc functions directly in css and I imagine libraries of such functions could involve somewhat complicated conditionals. Cf. my comment: https://github.com/w3c/css-houdini-drafts/issues/857#issuecomment-579084136

GitHub Notification of comment by jimmyfrasche
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4731#issuecomment-582586482 using your GitHub account
Received on Wednesday, 5 February 2020 20:02:39 UTC

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