Skip to content
Astera Technology

Test the exact boundary of a responsive media query

Check 599px, 600px and 601px instead of relying only on a phone and desktop screenshot.

The inclusive min-width boundary starts the two-column layout at 600px.

Download complete case notes and answer keys ↓

Inspect the working example

The rule uses min-width:600px. The first view is one column; the media rule introduces two columns at the threshold, including exactly 600px.

Inputs and native observations
CaseInput or inspectionResult and meaning
BelowViewport 599Condition false; one column
BoundaryViewport 600Condition true; two columns
AboveViewport 601Condition true; two columns
Download editable CSV ↓

Follow the browser mechanism

min-width includes equality at the stated CSS-pixel value. Device physical pixels and screenshot resolution are not the same measurement. This lesson is about testing the exact condition; it is distinct from preserving content order or querying a component’s own container.

A one-pixel typo can hide in broad tests

The alternative changes the threshold to 601px. Broad 390px and 960px tests still look plausible.

Counterexample source; inspect separately
<style>body{margin:8px}</style>
<style>.view{display:grid;grid-template-columns:1fr}@media(min-width:601px){.view{grid-template-columns:1fr 1fr}}</style><section class="view"><p>Source</p><p>Preview</p></section>

At exactly 600px the alternative still has one column, unlike the specified rule.

Try the repair

Does testing only 390px and 960px distinguish min-width 600 from min-width 601?

Show the worked answer

No. Both conditions are false at 390 and true at 960. Test the exact 600px boundary.

  • Record matchMedia and measured grid positions at599/600/601.
  • Use CSS pixels in the test environment.

Original example files

Related resources