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

Re: [csswg-drafts] [selectors4] Name the “functional pseudo-class like :matches() with 0 specificity”

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Jul 2018 03:45:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-402917178-1530848735-sysbot+gh@w3.org>
My last two suggestions weren’t serious.

 But I liked `:is()` more than `:if()`. Sorry, but `:if()` just feels wrong to me. I think for Web authors, knowing a little (or more) JavaScript is more common than not. And you don’t need to know a lot of it to see `if(foo) {  }` as script instead of CSS. `:if()` makes me expect there should also be an `:else()`. Or maybe a `:then()`

The older proposal of `@if` and `@else` for media queries seemed more natural to me.

GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2143#issuecomment-402917178 using your GitHub account
Received on Friday, 6 July 2018 03:45:39 UTC

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