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

Re: [csswg-drafts] [selectors4] :for selector (#1067)

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Tue, 01 Dec 2020 21:47:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-736841157-1606859240-sysbot+gh@w3.org>
To extend on @Boldewyn's post, a function has the advantage of allowing to filter the form controls by more than their states.

The syntax for this could be:

```css
:for([<type-selector>? <subclass-selector>*]!)
```

Note: This syntax does not cover the `:for(.a, .b)` case above. That one can simply be achieved via `:for(:is(.a, .b))` or `:is(:for(.a), :for(.b))`.

Sebastian

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 1 December 2020 21:47:23 UTC

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