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

Lack of whitespace between @container and (RULE) cause problem #5

Open
phanngl opened this issue Jul 2, 2021 · 1 comment
Open

Comments

@phanngl
Copy link

phanngl commented Jul 2, 2021

My first time filing an open source issue, please go easy on me :).

Using cqfill with PostCSS, when i leave a whitespace between @container and (RULE), the generated CSS code works. But when I remove the whitespace

@container(min-width: 700px) {
  .contained {
    /* styles applied when a container is at least 700px */
  }
}

which i think is valid, then the generated CSS become

@media--css-container and (min-width: 700px) {
...
}

The whitespace between @media and --css-container is gone and it does not work anymore.

Your thought on this ?

@jonathantneal
Copy link
Contributor

Great find, @phanngl. Fixing in cb1efd5

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

No branches or pull requests

2 participants