fix: support parsing camel case in container queries by tanhauhau · Pull Request #11131 · sveltejs/svelte (original) (raw)
Fixes #10845
The eatIdent(...) method from css-tree somehow expects lowercase identifiers only, and thus not working for camel case container names. switching to a more generic eat(Ident) would work. Since we already know the current token is an identifier with the name, we dont have to assert the content of the identifier via eatIdent()
Before submitting the PR, please make sure you do the following
- It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
- Prefix your PR title with
feat:,fix:,chore:, ordocs:. - This message body should clearly illustrate what problems it solves.
- Ideally, include a test that fails without this PR but passes with it.
Tests and linting
- Run the tests with
pnpm testand lint the project withpnpm lint