We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
media-query-no-invalid
I want to warn on invalid media queries.
see : #6560 (comment)
Types of errors :
@media
isMediaQueryInvalid(x)
@media @foo {}
isGeneralEnclosed(x)
@media ((min-width: 300px) and (hover: hover) or (aspect-ratio: 1 / 1))
@media (min-width: var(--foo))
@media (min-width: 50%)
A new rule :
true
Unexpected invalid media query "${query}"
The text was updated successfully, but these errors were encountered:
@romainmenke Thanks for opening the issue. That sounds great to me. 👍🏼
Let's wait for the feedback. If nobody objects, then let's mark it as ready.
Sorry, something went wrong.
Since there are no objections, I've labeled the issue as ready to implement. Please consider contributing if you have time.
There are steps on how to add a new rule in the Developer guide.
@media screen() {}
Successfully merging a pull request may close this issue.
What is the problem you're trying to solve?
I want to warn on invalid media queries.
see : #6560 (comment)
Types of errors :
@media
params are not even remotely similar to a media queryisMediaQueryInvalid(x)
will be true@media @foo {}
isGeneralEnclosed(x)
will be true@media ((min-width: 300px) and (hover: hover) or (aspect-ratio: 1 / 1))
isGeneralEnclosed(x)
will be true@media (min-width: var(--foo))
@media (min-width: 50%)
What solution would you like to see?
A new rule :
media-query-no-invalid
true
Unexpected invalid media query "${query}"
The text was updated successfully, but these errors were encountered: