Page.getLayoutMetrics

Returns metrics relating to the layouting of the page, such as viewport bounds/scale.

{
  "name": "getLayoutMetrics",
  "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.",
  "experimental": true,
  "returns": [
    {
      "name": "layoutViewport",
      "$ref": "LayoutViewport",
      "description": "Metrics relating to the layout viewport."
    },
    {
      "name": "visualViewport",
      "$ref": "VisualViewport",
      "description": "Metrics relating to the visual viewport."
    },
    {
      "name": "contentSize",
      "$ref": "DOM.Rect",
      "description": "Size of scrollable area."
    }
  ]
}