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

CSS container queries throw errors #317

Open
helgatheviking opened this issue Jan 20, 2023 · 3 comments
Open

CSS container queries throw errors #317

helgatheviking opened this issue Jan 20, 2023 · 3 comments

Comments

@helgatheviking
Copy link

I am trying to add a container query to my stylesheet

@container (min-width: 320px) {
  #test {
    background: pink; } }

And I get unexpected and invalid character/property errors

Unexpected '}' at assets/css/frontend/style.css:36:24.,Invalid character(s) '}
' at assets/css/frontend/style.css:36:24. Ignoring.,Invalid property name '# {
background' at assets/css/frontend/style.css.css:35:2. Ignoring.
4 files created. 5.6 kB → 4.38 kB

@benjamindell
Copy link

Hi. Did you ever resolve this? We're getting the same issue and not quite sure how to resolve it.

@helgatheviking
Copy link
Author

I never did... I probably just stopped trying to use container queries. :(

@KoenWouters
Copy link

KoenWouters commented Dec 18, 2023

Just experienced same issue with version 3.0.0.

In an other project version 4.0.0 was installed. This version is not giving errors and works. Solution: upgrade to 4.0.0 (or higher).

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