You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I just noticed, that the following does not work:
@media (500px <= width) {}
/* does not become the following: */@media (min-width:500px) {}
To my understanding also the latter syntax is expected to work according to Example 16 of Media Queries Level 4 and at least Firefox and Chrome already understand it.
The text was updated successfully, but these errors were encountered:
lschmelzeisen
changed the title
Support (500px <= width) syntax
Support @media (500px <= width) syntax
May 2, 2023
lschmelzeisen
changed the title
Support @media (500px <= width) syntax
Support (500px <= width) syntax
May 2, 2023
Because we used postcss-media-minmax in postcss-preset-env we wanted to get this fix and others out to our users. So we released our updated version as a separate package.
You could use that version until the maintainers here have time again.
Hey @romainmenke, great, thank you! I have switched my code to using your fork for now, as I have much more confidence with your rewrite instead of a regex-based implementation. Also I commend your efforts in pushing this back upstream 👍
The following transformation works as expected:
However, I just noticed, that the following does not work:
To my understanding also the latter syntax is expected to work according to Example 16 of Media Queries Level 4 and at least Firefox and Chrome already understand it.
The text was updated successfully, but these errors were encountered: