Re: [csswg-drafts] [selector-4] Do we need selector for `is` attribute?

@tabatkins You may misunderstand my `x:is(extends-x)` sample, it's not current `:matches()`, but a selector to match `is` attribute for custom elements. I create this issue because these two usage are obviously have conflict. 

As my first comment suggest, we may need special `is` attr selector instead of `[is=extends-x]` because of the zero specificity use cases. Of coz we can use `x:where([is=extends-x])`, but it's a little clumsy and annoying for common use cases.

@ExE-Boss The question may be, if we can redesign CSS, should we drop `.foo` and ask everyone use `[class~=foo]` instead?

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

Received on Monday, 19 November 2018 03:35:57 UTC