Re: [csswg-drafts] [selectors-4] Attribute match syntax extended to cover tag selectors (#6571)

I wouldn't pollute `:is()` with an obscure syntax that can't be used outside of it. And `x-*` seems confusing because `*` typically means universal selector. So I would add a new pseudo-class, and borrow the inner syntax from attribute selectors:

```css
:tag(= x-foo) /* like `x-foo` but different specificity */
:tag(^= x-)
:tag($= -foo)
:tag(*= -foo-)
:tag(= div s) /* case sensitive: matches <div> but not <DIV> */
```

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 3 September 2021 00:09:12 UTC