Skip to content

Svelte 5 can't seem to handle certain valid CSS syntax #15354

@jamesxliu

Description

@jamesxliu

Describe the bug

Seems like the compiler chokes on CSS selectors that have unusual but perfectly valid syntax?

Specifically selectors that start with hyphens, like .--foo { ... }

Seems like something that should be fixed?

Reproduction

https://svelte.dev/playground/06094d830e0d432f95098170db35c2ca?version=5.20.2

Logs

System Info

Not relevant, can be reproduced in Svelte REPL

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    cssStuff related to Svelte's built-in CSS handlingneeds discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions