question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for @container

See original GitHub issue

Then you add this:

const Body = styled.div`
  @container (max-width: 300px) {
    display: none;
  }
`

It transforms into:

@container (max-width: 300px){display:none;}

Which is incorrect, it should be something like:

@container (max-width: 300px){.css-w7dhq6{display:none;}}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
stijnvanderlaancommented, Sep 1, 2022

It has landed in Chrome 105, and will be in de next Safari, for other browsers there is a polyfill available.

8reactions
Andaristcommented, Sep 1, 2022

As far as I know, container queries are still an experimental feature. We probably won’t commit to supporting it until it gets included in the spec. This would have to be implemented in the parser that we are using so it should be reported to that project: https://github.com/thysultan/stylis/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support policy for containers and related services on Azure
Describes the support options and coverage that Microsoft offers for containers and surrounding infrastructure services.
Read more >
What is a Container? - Docker
A container is a unit of software that packages code and its dependencies so the application runs quickly and reliably across computing environments....
Read more >
"container query" | Can I use... Support tables for HTML5 ...
Container Query Units specify a length relative to the dimensions of a query container. The units include: cqw , cqh , cqi ,...
Read more >
Containers - Kubernetes
Kubernetes supports container runtimes such as containerd, CRI-O, and any other implementation of the Kubernetes CRI (Container Runtime ...
Read more >
Container Platforms: 6 Best Practices and 15 Top Solutions
Container as a Service: How Google Kubernetes Engine Works; 6 Best Practices for Using a Container Platform; Container Security; Container Monitoring; Container ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found