garden icon indicating copy to clipboard operation
garden copied to clipboard

Add support for container queries

Open Jarzka opened this issue 3 years ago • 3 comments

Hi

It seems that container queries are going to be a significant new feature in CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries https://ishadeed.com/article/say-hello-to-css-container-queries/

Could we have a support for these in Garden? Perhaps a new at-rule helper at-container?

Jarzka avatar Jun 13 '21 11:06 Jarzka

Very interesting, had not heard of that.

Here is (I think) the relevant caniuse: https://caniuse.com/css-container-queries

  • Could be useful for tracking browser adoption of this feature

harold avatar Jun 14 '21 15:06 harold

Yea, it is not yet usable in any browser without flags, so there is no hurry. But I would assume it will become popular in the coming years.

Jarzka avatar Jun 15 '21 17:06 Jarzka

@Jarzka container queries are now supported in the Chrome and Safari, so it's probably time to add support. ~We'd like to start using~ We're using container queries now for https://polytope.com.

aeriksson avatar Aug 16 '22 10:08 aeriksson