VisualViewport
Overview
VisualViewport is a class in Aspose.Html FOSS for Python.
CSSOM View §9 VisualViewport — all values are headless stubs.
Properties: height, offset_left, offset_top, page_left, page_top, scale, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read | Viewport width in CSS pixels (stub: 0). |
height | int | Read | Viewport height in CSS pixels (stub: 0). |
scale | float | Read | Pinch-zoom scale factor (stub: 1.0 — no pinch-zoom in headless). |
offset_top | float | Read | Top offset of the visual viewport relative to the layout viewport (stub: 0.0). |
offset_left | float | Read | Left offset of the visual viewport relative to the layout viewport (stub: 0.0). |
page_top | float | Read | Top position of the visual viewport in the page (stub: 0.0). |
page_left | float | Read | Left position of the visual viewport in the page (stub: 0.0). |