Skip to content

:global block produces invalid css for SelectorList #15816

Closed
@paoloricciuti

Description

@paoloricciuti

Describe the bug

Given a component like this

<style>
	:global {
		a, b {
			color: red;
		}
	}
</style>

the generated css looks like this

	/* :global {*/
		/* (unused) a, b*/ {
			color: red;
		}
	/*}*/

which is wrong because there's a block without a selector.

Reproduction

REPL

Logs

-

System Info

-

Severity

annoyance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions