concept

Container query unit fallback — CSS reference

Container query length units use an eligible ancestor for the relevant axis. When none exists, the small viewport size for that axis is used instead. This isolated document has no size query container; 10cqw therefore resolves to one tenth of the small viewport width.

Formal Syntax & Structure

css syntaxcss
width: 10cqw;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>container-query-unit-fallback</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{padding:0;width:10cqw}</style><body><div id="a">Unit</div></body></html>
CSS Reference