CSSworkingbaseline-2022

Fluid type with clamp()

One value that scales itself.

clamp(min, preferred, max) lets a font size grow with the viewport but never shrink below a floor or blow past a ceiling — no media-query breakpoints, no JavaScript.

A heading that scales with the viewport

HTML+CSS+JSintro
Press Run to execute

The <h1> renders at 6vw while that sits between 1.75rem and 4.5rem, so it grows as the preview widens and then freezes at the 4.5rem ceiling — one font-size declaration replaces a stack of breakpoints.