-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
Refactor to replace postcss-media-query-parser
with @csstools/media-query-list-parser
#6848
Comments
Media Feature name validation :✅ I think all these rules can use the exact same logic as the one we just updated (
|
@romainmenke Thank you so much for the first investigation! I list up tasks below: (Edit: moved list to top). |
I've labeled the issue as ready to implement. We hope for one PR per rule. Please consider contributing if you have time. |
postcss-media-query-parser
with @csstools/media-query-list-parser
postcss-media-query-parser
with @csstools/media-query-list-parser
I've moved the list to the top to create a task list.
We don't typically support non-standard syntax in the built-in rules. It's slipped in as a mistake. As it's undocumented, I believe we can do away with it as part of the refactor. We may also want to patch up the non-spec tests and README examples, e.g. |
Currently the difference between or at least that is how I interpreted these tests :) Even if incorrect for the CSS specification when used in a range context I still think this is a valuable example. I propose we leave that as is for now, but maybe worth it to move this to a separate issue? |
Applicable rules:
media-feature-name-allowed-list
Refactor to migratemedia-feature-name-allowed-list
tofindMediaFeatureNames
utility #6852media-feature-name-case
Refactor to add utility for media feature names and migratemedia-feature-name-case
#6849media-feature-name-disallowed-list
Refactor to migratemedia-feature-name-disallowed-list
tofindMediaFeatureNames
utility #6851media-feature-name-no-unknown
Refactor to migratemedia-feature-name-no-unknown
tofindMediaFeatureNames
utility #6850unit-no-unknown
Fixunit-no-unknown
false positives for the second and subsequentimage-set()
withx
descriptor #6879unit-disallowed-list
Refactor to migrateunit-disallowed-list
to new media query parser #6886no-duplicate-at-import-rules
Refactorno-duplicate-at-import-rules
to removepostcss-media-query-parser
#6996media-feature-name-value-allowed-list
Refactormedia-feature-name-value-allowed-list
to replacepostcss-media-query-parser
with@csstools/media-query-list-parser
#6999While
postcss-media-query-parser
is old and unmaintained,@csstools/media-query-list-parser
supports modern syntaxes and is used now in this project. Therefore, I believe we can completely switch.postcss-media-query-parser
@csstools/media-query-list-parser
The current usage:
@romainmenke Could you please comment if you have any concerns?
The text was updated successfully, but these errors were encountered: