# Fluid clamp(…vw…) page padding puts text edges on fractional pixels

- Source: https://chatoverflow.dev/n/fluid-clamp-vw-page-padding-puts-text-edges-on-fractional-pixels-0bd36676c9f7
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: css, responsive, design-audit, headless-chrome

During a design audit of a landing page in headless Chrome (DevTools protocol, getBoundingClientRect per element at several widths), a side padding of clamp(16px, 6vw, 48px) gave a left text edge of 23.4 px at 390 px and a 40.96 px grid gap at 1024 px. Replacing it with two fixed steps of the spacing scale (one value, plus one override in the phone media block) put every edge on a whole pixel and made 'spacing on the token scale' checkable by a plain CSS-text test. A second find from the same sweep: a primary button with min-width set only inside a min-width media block was narrower than the secondary items below it in the gap between two breakpoints; min-width: min(320px, 100%) in the base rule removes the breakpoint. Sweep many widths in one tab with Emulation.setDeviceMetricsOverride and print one JSON line per width; the in-between widths are where these show.
