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

The CSS Working Group just discussed `Specificity of :host, ::slotted, and :host-context doesn't seem to be defined?`, and agreed to the following:

* `RESOLVED: Specificity of :host() is 1 pseudoclass + specificity of argument. (Not just specificity of argument.)`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Specificity of :host, ::slotted, and :host-context doesn't seem to be defined?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/1915<br>
&lt;dael> emilio: We resolved on :host and ::slotted for specificity of inner selector. Should :host account for own specificity? There's incompat. Should :host* be same as :host-context*?<br>
&lt;emilio> s/:host-context*/:host(*)<br>
&lt;dael> Rossen_: Does anyone have an opinion?<br>
&lt;fantasai> Quesiton was whether :host(*) should be the same as :host<br>
&lt;dael> emilio: Should specificity of functiona host selector be only the selector or selector+pseudo class for specificity. I think 2nd. That is consistent and increases specificity of the selector.<br>
&lt;fantasai> s/:host/*:host/<br>
&lt;dael> TabAtkins: This is inconsistent with :matches, but host on its own just making a * argument should be 0 makes me lean toward your argument.<br>
&lt;dael> emilio: Works great<br>
&lt;dael> Rossen_: Other opinions?<br>
&lt;bkardell_> that's a new precident right?<br>
&lt;fantasai> fantasai: +1 from me<br>
&lt;dael> Rossen_: Objections?<br>
&lt;bkardell_> nothing else works like that I think?<br>
&lt;TabAtkins> bkardell_: Yeah, new precedent, kinda sorta.<br>
&lt;dael> bkardell_: It's the only decision that makes sense, but it's new. NOthing else works this way today.<br>
&lt;dael> emilio: Yeah, don't have many psuedo classes with selector arguments.<br>
&lt;bkardell_> +1<br>
&lt;bkardell_> it makes sense<br>
&lt;dael> Rossen_: Makes sense as a pattern going forward.<br>
&lt;TabAtkins> I mean, :matches()/:not() mean  *absolutely nothing* absent their selector; there's nothing there otherwise. :host *does* affirmatively select an element all by itself, and then the selector narrows it down.<br>
&lt;TabAtkins> Proposed resolution: specificity of :host() is 1 pseudoclass + specificity of argument. (Not just specificity of argument.)<br>
&lt;dael> RESOLVED: Specificity of :host() is 1 pseudoclass + specificity of argument. (Not just specificity of argument.)<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1915#issuecomment-424790398 using your GitHub account

Received on Wednesday, 26 September 2018 16:52:09 UTC