W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: ExE Boss via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Nov 2018 17:00:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-439965972-1542646842-sysbot+gh@w3.org>
(In&nbsp;reply to&nbsp;@hax from&nbsp;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&#x2011;like languages (for&nbsp;example: [Qt&nbsp;Style&nbsp;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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:55 UTC