Skip to content

Svelte 5: partial :global compound selectors broken #10286

@PatrickG

Description

@PatrickG

Describe the bug

Before #10266 it was possible to use a :global(b):c selectors in stylesheets.
Now you'll get the error :global(...) must not contain type or universal selectors when used in a compound selector.

This doesn't work well with nesting.

Reproduction

Repl

Logs

No response

System Info

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions