zerodom_set_viewport
Set the active page's viewport size to test responsive layouts at specified dimensions, overriding the rendered width and height without resizing the browser window.
Instructions
Resize the active tab's viewport for responsive-design testing.
Not the real browser window — that's zerodom_resize_window. This is Emulation.setDeviceMetricsOverride: the page's own rendered layout at a given width, without touching the chrome around it. Use this one for "how does this render at width X"; use zerodom_resize_window for an actually different-sized window on screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |