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

🐛 CSS parser fails to parse * in variable #4794

Closed
1 task done
condemil opened this issue Dec 25, 2024 · 6 comments
Closed
1 task done

🐛 CSS parser fails to parse * in variable #4794

condemil opened this issue Dec 25, 2024 · 6 comments
Labels
S-Needs triage Status: this issue needs to be triaged

Comments

@condemil
Copy link

Environment information

vscode embedded biome v1.9.4

What happened?

The following tailwind v4 css syntax breaks the parser:

--color-*: initial;

Expected result

Parser doesn't brake and accepts asterisk in the variable

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@condemil condemil added the S-Needs triage Status: this issue needs to be triaged label Dec 25, 2024
@condemil
Copy link
Author

And similar issue with:

@import "tailwindcss" source(none);

@ematipico
Copy link
Member

Is it valid, stable, CSS syntax?

@condemil
Copy link
Author

I did a quick check and it doesn't look like it's a part of CSS spec.

@dugajean
Copy link

I'm getting it for .. We should perhaps have the option to disable this rule for certain lines.

Screenshot 2024-12-27 at 12 02 04 PM

@ematipico
Copy link
Member

This isn't a rule, you can see that from the tooltip you just posted, it's written biome(parse).

Biome couldn't parse the file because tailwind uses syntax that isn't still stable.

Best thing is to ignore the file.

@ematipico ematipico closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
@malobre
Copy link
Contributor

malobre commented Jan 2, 2025

You need to escape the asterisk, i.e: --color-\*: initial;. Tailwind should understand this syntax, otherwise it's a bug on their end.

Edit: check tailwindlabs/tailwindcss#15533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Needs triage Status: this issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants