Skip to content

[css-scoping] Consider making ::slotted and :host take a single argument. #2158

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
emilio opened this issue Jan 2, 2018 · 3 comments · Fixed by #5673
Closed

[css-scoping] Consider making ::slotted and :host take a single argument. #2158

emilio opened this issue Jan 2, 2018 · 3 comments · Fixed by #5673

Comments

@emilio
Copy link
Collaborator

emilio commented Jan 2, 2018

As far as I know, no engine implements ::slotted with multiple arguments, and keeping it with a single argument allows to optimize it more easily (see https://bugzilla.mozilla.org/show_bug.cgi?id=1425757).

@fantasai fantasai added the css-scoping-1 Current Work label Jan 11, 2018
@emilio
Copy link
Collaborator Author

emilio commented Feb 4, 2018

This also prevents issues about defining specificity of the selector. See #1027 and #1915.

@emilio
Copy link
Collaborator Author

emilio commented Apr 9, 2018

This request also applies to :host.

@emilio emilio changed the title [css-scoping] Consider making ::slotted take a single argument. [css-scoping] Consider making ::slotted and :host take a single argument. Apr 9, 2018
@css-meeting-bot
Copy link
Member

The Working Group just discussed Consider making ::slotted and :host take a single argument., and agreed to the following resolutions:

  • RESOLVED: Accept proposal in https://github.com/w3c/csswg-drafts/issues/2158
The full IRC log of that discussion <dael> Topic: Consider making ::slotted and :host take a single argument.
<dael> github: https://github.com//issues/2158
<dael> emilio: Single argument prevents discussion about specificity and it's simpler to organize.
<dael> ???: Is this the same as matches?
<dael> emilio: Right.
<nainar> s/???/rune_
<dael> rune: I don't know how much sense it makes to have this implicit matches thing
<dael> TabAtkins: Spec was clear. People have problems reading work like default.
<dael> emilio: Spec was clear but impl are shipping with something else.
<dael> TabAtkins: I don't care if we do 0 spec or spec to an arguement. You can always nest a matches in there.
<dael> Rossen: I'm hearing people in favor. Objections?
<dael> RESOLVED: Accept proposal in https://github.com//issues/2158

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants