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
Add media-feature-range-notation #6497
Conversation
🦋 Changeset detectedLatest commit: 7d3c192 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
nit add |
Co-authored-by: sidverma32 <sid.verma32@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating the pull request. I've left some trivial suggestions, but there are no big problems. 👍🏼
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. LGTM 👍🏼
Let's add a changelog entry before merging the PR!
All good catches, thanks. I've added a changelog entry. |
Closes #6161
Part of cleaning up our pull requests as we prepare for v15.
As mentioned in #6430 (comment), this pull request doesn't include autofix. I'll open a new issue for that. CssTools dropped a new media query parser the other day that may make implementating autofix more viable.
Additionally, I believe the edge-case of:
Should be transformed by this rule into:
That could then be merged into:
By another rule, one that sets the notation of media features in a range context. For example,
media-feature-range-context-notation
:"separate"|"combined"
. I'll create another issue to discuss this, though. I wanted to mention it here to give context to this pull request.There are lots of terms in media queries. I've tried to get them right in the rule logic and test descriptions. Casting a second pair of eyes over these would be great.