Skip to content

Adding :scope pseudo-class support #1450

New issue

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

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

Already on GitHub? Sign in to your account

Closed
corneliusio opened this issue May 12, 2018 · 1 comment
Closed

Adding :scope pseudo-class support #1450

corneliusio opened this issue May 12, 2018 · 1 comment

Comments

@corneliusio
Copy link

corneliusio commented May 12, 2018

This is actually not related to #901 perse, though it's possible it could inform it. I was thinking support for the :scope pseudo-class would make a lot of sense whether styles are scoped or global by default.

Currently, to apply styles directly to any root elements, some unique selector must be applied to it or them to do so. While this certainly isn't a real issue, it did make me start thinking if it should be necessary and how :scope might actually fit into Svelte from an ideological standpoint.

From what I can tell, pretty much everything is already present in svelte to more or less "flip a switch" for this kind of feature. I was able to play around a little and getting it working with just a few new lines of code.

But, I just wanted to throw this out there to see if anything stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants