API reference / Common / Viewport
Interface: Viewport
What the engine should paint: a window into document space plus the output surface metrics. The canvas is pinned to the viewport (synthetic scroll), so scrollX/scrollY are a document-space offset, not DOM scroll.