W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [css-scoping-1] Specificity of :host and :host-context doesn't seem to be defined?

From: Rune Lillesveen via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Dec 2017 09:38:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-351658329-1513244293-sysbot+gh@w3.org>
Having the same specificity for the two rules below sounds unfortunate to me as I can imagine you'd want to do host overrides on classes/attributes on the host element, but I don't know to what degree it's used in practice:

:host(.pink) { color: pink }
:host { color: green }


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1915#issuecomment-351658329 using your GitHub account
Received on Thursday, 14 December 2017 09:38:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC