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

Svelte 5: Using CSS selector function fails if they contain new line #10073

Closed
minht11 opened this issue Jan 3, 2024 · 0 comments · Fixed by #10077
Closed

Svelte 5: Using CSS selector function fails if they contain new line #10073

minht11 opened this issue Jan 3, 2024 · 0 comments · Fixed by #10077
Labels
compiler Changes relating to the compiler css Stuff related to Svelte's built-in CSS handling
Milestone

Comments

@minht11
Copy link

minht11 commented Jan 3, 2024

Describe the bug

Following code snippet fails in svelte 5, but works in svelte 4.

<style>
	:is(
		button
	) {
		background: blue;
	}
</style>

Reproduction

Svelte 4 works
Svelte 5 fails

Logs

Expected a valid CSS identifier

System Info

no need

Severity

annoyance

@Conduitry Conduitry changed the title Using CSS selector function fails if they contain new line Svelte 5: Using CSS selector function fails if they contain new line Jan 3, 2024
@Conduitry Conduitry added compiler Changes relating to the compiler css Stuff related to Svelte's built-in CSS handling labels Jan 3, 2024
@Conduitry Conduitry added this to the 5.0 milestone Jan 3, 2024
dummdidumm pushed a commit that referenced this issue Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Changes relating to the compiler css Stuff related to Svelte's built-in CSS handling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants