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

(In reply to @hax from https://github.com/w3c/csswg-drafts/issues/3327#issuecomment-439762063)
> @ExE-Boss The question may be, if we can redesign CSS, should we drop `.foo` and ask everyone use `[class~=foo]` instead?

Considering that we can’t redesign CSS and that CSS‑like languages (for example: [Qt Style Sheets](https://doc.qt.io/qt-5/stylesheet.html)) make use of that shorthand, I don’t think we can do that.

Also, when it comes to IDs and classes, they’re also a part of XML, whereas the custom elements `is` attribute is only a part of HTML.

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

Received on Monday, 19 November 2018 17:00:52 UTC