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

Use range context for media features #2076

Open
jobara opened this issue Dec 13, 2023 · 0 comments
Open

Use range context for media features #2076

jobara opened this issue Dec 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jobara
Copy link
Collaborator

jobara commented Dec 13, 2023

Is your feature request related to a problem? Please describe.

Ranges in media queries can have issues at times specifying min and max values. See: https://drafts.csswg.org/mediaqueries/#mq-min-max

Describe the solution you'd like

Instead of using min/max prefixes the media features should be converted to use range contexts. Stylelint can be configured to check for these using the media-feature-range-notation rule set to context.

Describe alternatives you've considered

No response

Additional context

This change could have been made already but at the time of writing, it is a relatively new feature for mobile browsers (introduced within the past year). We should wait till more users have had time to update their devices/browsers before making the switch.

see: https://caniuse.com/?search=range%20context

@jobara jobara added the enhancement New feature or request label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant