Replies: 2 comments 3 replies
-
Biome approach is a bit conservative, and its use case is different from LightningCSS and PostCSS. We want to avoid to add syntax that might not see the light in the official spec. However, I am not very familiar with the CSS process. I bet it is different from ECMAScript. If you're certain that |
Beta Was this translation helpful? Give feedback.
-
@ematipico What's your take on CSS support then? Are there any rules or process on which features end up supported in Biome? The |
Beta Was this translation helpful? Give feedback.
-
It would be nice if Biome's correctness linter didn't flag usages of
@custom-media
. This at-rule hasn't been implemented by browsers yet but it has been specced. People should be able to use it with CSS tools so that they can move towards using it sooner rather than later.I.E., consider this code:
This generates a linting error:
Tools like LightningCSS and PostCSS can convert this code to use browser-supported media queries:
Currently, my only options to get Biome to not throw errors here is to ignore the
noUnknownMediaFeatureName
rule on every usage of custom media or to disable the rule entirely.Beta Was this translation helpful? Give feedback.
All reactions