Tested tool guide
Tested browser tools
Checked August 16, 2026
What CSS Container Query Playground does, with a checked example
This playground exposes CSS size container-query behavior by letting you resize a query container and watch descendant styles cross declared breakpoints. It helps test a component independently of the page viewport. The common surprise is that @container does not inspect the browser window: a size query needs an eligible ancestor, usually established with container-type: inline-size, and evaluates that container's dimensions.
Worked example
A concrete input and expected output from the current implementation.
Input
Container width: 420px
HTML:
<div class="panel"><p class="message">Ready</p></div>
CSS:
.panel { container-type: inline-size; }
.message { color: black; }
@container (min-width: 400px) {
.message { color: blue; }
} ->
Expected output
The preview shows "Ready" in blue. If the same container is resized to 399px, the text appears in black.
The 420px inline size satisfies min-width: 400px, so the conditional declaration overrides black with blue. At 399px the condition is false, leaving the baseline declaration in force.