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

NameTypeAccessDescription
widthintReadViewport width in CSS pixels (stub: 0).
heightintReadViewport height in CSS pixels (stub: 0).
scalefloatReadPinch-zoom scale factor (stub: 1.0 — no pinch-zoom in headless).
offset_topfloatReadTop offset of the visual viewport relative to the layout viewport (stub: 0.0).
offset_leftfloatReadLeft offset of the visual viewport relative to the layout viewport (stub: 0.0).
page_topfloatReadTop position of the visual viewport in the page (stub: 0.0).
page_leftfloatReadLeft position of the visual viewport in the page (stub: 0.0).

See Also