Skip to content
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

:global(selector1) selector2 { ... } - selector2 is not scoped to component #1618

Closed
Conduitry opened this issue Jul 26, 2018 · 1 comment · Fixed by #1631
Closed

:global(selector1) selector2 { ... } - selector2 is not scoped to component #1618

Conduitry opened this issue Jul 26, 2018 · 1 comment · Fixed by #1631
Labels

Comments

@Conduitry
Copy link
Member

:global(selector1) selector2 {
  ...
}

compiles to

selector1 selector2 {
  ...
}

which seems strange to me. I'd expect it to be selector1 selector2.svelte-hash. There doesn't currently seem to be a way to achieve that. This feels like a bug to me, but I can't be certain what the intended behavior is here.

cc @kaisermann @arxpoetica

@Rich-Harris
Copy link
Member

fixed in 2.9.10

Rich-Harris added a commit that referenced this issue Oct 27, 2018
encapsulate local styles inside global ones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants