# CSS Style Queries

DevFeed: [CSS Style Queries](<https://devfeed.tech/articles/css-style-queries-45282.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/css-container-style-queries/>)

Author: Ahmad Shadeed

Published: 2022-12-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web platform](<https://devfeed.tech/topics/web-platform.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [border-image](<https://devfeed.tech/topics/border-image.md>)

Tags: [browsers](<https://devfeed.tech/tags/browsers.md>), [canary](<https://devfeed.tech/tags/canary.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [component](<https://devfeed.tech/tags/component.md>), [container](<https://devfeed.tech/tags/container.md>), [css](<https://devfeed.tech/tags/css.md>), [css-variables](<https://devfeed.tech/tags/css-variables.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [queries](<https://devfeed.tech/tags/queries.md>), [query](<https://devfeed.tech/tags/query.md>), [selector](<https://devfeed.tech/tags/selector.md>), [style](<https://devfeed.tech/tags/style.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

## AI overview

This tutorial explains CSS style queries, which query a container's CSS property or variable instead of its size. It describes their experimental implementation in Chrome Canary and contrasts them with container size queries.

## Source excerpt

For me, 2022 is the best year ever for CSS. We got a lot of new stuff supported in stable browsers and it's just like living a dream. From CSS subgrid, :has selector, container queries, and the new viewport units. So many things to grasp, I understand - but I'm sure we agree that this is exciting, isn't it? Recently, the Chrome team released experimental support for a new proposed CSS spec, style queries. In short, they let us query the style of a container, rather than the size only.