:global block produces invalid css for SelectorList

#15816

Development PR

Issue

Solved
P
paoloricciuti
Apr 22, 2025, 7:43 AM

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

Info

Closed at Apr 22, 2025, 10:03 AM
Assignees dummdidumm
Labels None
Milestone None