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

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