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
@miragecraft posted on Twitter the following discovery:
@media (width < 640px) { /* styles */ } /* is the same as */ @media (max-width: 640px) { @media not (width: 640px) { /* styles */ } }
This seems like a better output than the (max-width: 639.98px) workaround that this plugin currently uses. Has this solution ever been considered?
(max-width: 639.98px)
The text was updated successfully, but these errors were encountered:
Is there an example where (max-width: 639.98px) causes issues?
Nested media queries wasn't always supported : https://developer.mozilla.org/en-US/docs/Web/CSS/@media#browser_compatibility:~:text=Nested%20media%20queries
Another issue is that the proposed transform quickly escalates in complexity :
How do these examples transform? How do you program the plugin to transform correctly in all edge cases?
@media ((width < 640px) or (height < 400px)) { /* styles */ } @media not print and (width < 640px) { /* styles */ }
Keeping the same overal query but changing the values is the least impactful change and therefor more likely to be correct.
Sorry, something went wrong.
No branches or pull requests
@miragecraft posted on Twitter the following discovery:
This seems like a better output than the
(max-width: 639.98px)
workaround that this plugin currently uses. Has this solution ever been considered?The text was updated successfully, but these errors were encountered: