This becomes important, for example, on mobile devices, where a pinching gesture can usually be used to zoom in and out on a site's contents. The rendered document doesn't change in any way, so the layout viewport remains the same as the user adjusts the zoom level. Instead, the visual viewport is updated to indicate the area of the page that they can see.
See also
- Visual Viewport API
- Viewport on Wikipedia
- A tale of two viewports (Quirksmode)
- Viewport in the datarist Glossary
- Visual viewport in the datarist Glossary