Skip to content

:global applied to multiple selectors should be an error #5907

@hjalmar

Description

@hjalmar

Describe the bug
Prefixing a css global to give it scope only scopes the first selector.

To Reproduce
https://svelte.dev/repl/aaed36026d014e34b45aedef9630b55f?version=3.31.2

Expected behavior

article.svelte-1nz7a1b div.svelte-1nz7a1b h1, article.svelte-1nz7a1b div.svelte-1nz7a1b h2, article.svelte-1nz7a1b div.svelte-1nz7a1b h3 { background-color: red; }

Current behaviour

article.svelte-1nz7a1b div.svelte-1nz7a1b h1, h2, h3 { background-color: red; }

Information about your Svelte project:
Latest svelte repl.

Severity
Not severe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions