Sizing a full-screen phone hero with vh, svh and dvh
A landing page opens with a hero that should fill the phone screen, with a button pinned to its bottom edge. The obvious CSS is height: 100vh. On a phone with a 390 × 844 viewport, that is 844 CSS pixels. The trouble is that 844 is the height with the browser bars hidden, and when the page first loads, the bars are showing. If they take 100px, only 744px of the hero is visible and the button sits behind the tool bar.
The newer units exist for exactly this. 100svh is the small viewport height, 744px in this example, so the whole hero fits when the bars show. 100lvh is the large height, 844px, the same as vh. 100dvh is dynamic: it starts at 744px and grows to 844px as the reader scrolls and the bars slide away. Set the bar height to 100 on this page and type 100dvh to see that range written out.
Which one to pick depends on the design. For a hero with a call to action at the bottom, 100svh is the safe choice, because the button is always visible. dvh looks tidier, because the hero always matches the window, but the layout shifts as the bars move, which can make text jump while someone reads. vh, now the same as lvh, suits backgrounds that may run under the bars without hiding anything important.
The same arithmetic works the other way. If a card in the design is 300px wide on a 390px phone, it is 76.92vw. On a 430px phone the same 76.92vw becomes 330.8px. That is often the reason to convert: to see whether a size that looks right on one screen still works on another. vmin and vmax help when a phone turns sideways. 50vmin is half the shorter side, 195px on a 390 × 844 phone either way round.
The calculator has limits. It does not measure your screen; it uses the numbers you pick or type. The preset sizes are the CSS viewports of common devices, and the real viewport is a little smaller where the browser shows its own interface. The height of the browser bars varies by browser, by setting and by whether the page is scrolled, so the value you type is an estimate unless you measure it. And on a desktop, the vw sums ignore the scrollbar, which takes part of the width on most Windows setups.