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

Silently removes @media blocks containing "and (not ...)" #476

Open
tszynalski opened this issue Feb 18, 2024 · 3 comments
Open

Silently removes @media blocks containing "and (not ...)" #476

tszynalski opened this issue Feb 18, 2024 · 3 comments

Comments

@tszynalski
Copy link

Media rules like @media (max-width: 701px) and (not (any-pointer: fine)) will result in the whole block being dropped. What's worse, it is completely silent, doesn't even issue a warning.

@Christoph-Wagner
Copy link

Same for @media (max-width: calc(…

@stepanjakl
Copy link

+1

@stepanjakl
Copy link

I think I've found a workaround. Removing the enclosing brackets seems to resolve the issue. Here's an example:

Before:

@media ((min-width: 45rem) and (min-aspect-ratio: 3/4)) { ... }

After:

@media (min-width: 45rem) and (min-aspect-ratio: 3/4) { ... }

This is also related to: #464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants