struct Protocol::Page::VisualViewport
- Protocol::Page::VisualViewport
- Struct
- Value
- Object
Overview
Visual viewport position, dimensions, and scale.
Included Modules
- JSON::Serializable
Defined in:
protocol/page.crConstructors
Instance Method Summary
-
#client_height : Number::Primitive
Height (CSS pixels), excludes scrollbar if present.
-
#client_width : Number::Primitive
Width (CSS pixels), excludes scrollbar if present.
-
#offset_x : Number::Primitive
Horizontal offset relative to the layout viewport (CSS pixels).
-
#offset_y : Number::Primitive
Vertical offset relative to the layout viewport (CSS pixels).
-
#page_x : Number::Primitive
Horizontal offset relative to the document (CSS pixels).
-
#page_y : Number::Primitive
Vertical offset relative to the document (CSS pixels).
-
#scale : Number::Primitive
Scale relative to the ideal viewport (size at width=device-width).
-
#zoom : Number::Primitive | Nil
Page zoom factor (CSS to device independent pixels ratio).