One heading, three ways to size it. Change the window width and the zoom, and see whose text grows.
Loading…
The simulated window, shrunk to fit. Its viewport is CSS pixels wide.
The heading's size in the window's pixels, measured
Method
At 100% zoom, 16px default
Now
Growth
32px
4vw alone
clamp(1.5rem, 1rem + 2vw, 3rem)
Each line is labeled at its right end. Solid: 100% zoom with a 16px default. Dashed: the current zoom and default. Where the 4vw line is labeled "both", zoom did nothing.