Page.VisualViewport
Visual viewport position, dimensions, and scale.
{
"id": "VisualViewport",
"type": "object",
"description": "Visual viewport position, dimensions, and scale.",
"properties": [
{
"name": "offsetX",
"type": "number",
"description": "Horizontal offset relative to the layout viewport (CSS pixels)."
},
{
"name": "offsetY",
"type": "number",
"description": "Vertical offset relative to the layout viewport (CSS pixels)."
},
{
"name": "pageX",
"type": "number",
"description": "Horizontal offset relative to the document (CSS pixels)."
},
{
"name": "pageY",
"type": "number",
"description": "Vertical offset relative to the document (CSS pixels)."
},
{
"name": "clientWidth",
"type": "number",
"description": "Width (CSS pixels), excludes scrollbar if present."
},
{
"name": "clientHeight",
"type": "number",
"description": "Height (CSS pixels), excludes scrollbar if present."
},
{
"name": "scale",
"type": "number",
"description": "Scale relative to the ideal viewport (size at width=device-width)."
}
]
}