puppeteer/new-docs/puppeteer.protocol.page.layoutviewport.md
2020-07-13 14:01:35 +01:00

1.2 KiB

Home > puppeteer > Protocol > Page > LayoutViewport

Protocol.Page.LayoutViewport interface

Layout viewport position and dimensions.

Signature:

export interface LayoutViewport 

Properties

Property Type Description
clientHeight integer Height (CSS pixels), excludes scrollbar if present.
clientWidth integer Width (CSS pixels), excludes scrollbar if present.
pageX integer Horizontal offset relative to the document (CSS pixels).
pageY integer Vertical offset relative to the document (CSS pixels).