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

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

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Sat, 08 Aug 2020 03:39:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-670817857-1596857951-sysbot+gh@w3.org>
Do I correctly notice two distinct features being proposed within all of these suggestions? One being a preferable syntax, and evaluate-able features?

For terseness of code, the `nth-value()` expression seems like the best fit overall, especially when I compare it against [the examples for either `switch()` or `@switch`](https://gist.github.com/tabatkins/7d0d55fe08812d28cc46bed40b9deacb)). However, both `switch()` and `@switch` happen to bring **element queries** along for the ride. That’s a pretty big deal. So, for me, this starts to smells of a false choice, where I’m comparing a syntax feature (terseness as readability) with a characteristic feature (element queries).

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 8 August 2020 03:39:15 UTC

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