({ name: "<container-name>", query: "<container-query>" });CSSContainerRule: conditions property / notebook
CSSContainerRule: conditions property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
@container sidebar (width >= 700px), (height >= 400px) {
/* Styles */
}[
{ name: "sidebar", query: "(width >= 700px)" },
{ name: "", query: "(height >= 400px)" },
];