Skip to content

Commit fc36507

Browse files
committed
moar
1 parent 0377fdb commit fc36507

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

browsers/viewport.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ description: "Configure browser viewport size and refresh rate for your automati
55

66
Kernel browsers allow you to configure the viewport size and refresh rate when creating a browser session. The viewport configuration determines the initial browser window dimensions and display refresh rate. The refresh rate can be explicitly specified or automatically determined based on the width and height if they match a supported configuration.
77

8+
<Note>
9+
The `refresh_rate` parameter only applies to live view sessions and is ignored for [headless](/browsers/headless) browsers.
10+
</Note>
11+
812
## Setting viewport configuration
913

1014
You can configure the viewport when creating a browser by specifying the `viewport` parameter with `width` and `height`. The `refresh_rate` is optional and will be automatically determined from the dimensions if they match a supported configuration:
@@ -204,4 +208,4 @@ The server will reject any viewport configuration that doesn't exactly match one
204208
- Higher resolutions (like 2560x1440) may impact the performance and responsiveness of live view sessions
205209
- The viewport size affects how websites render, especially those with responsive designs
206210
- Screenshots taken from the browser will match the configured viewport dimensions
207-
- In [headless mode](/browsers/headless), the viewport configuration still applies for rendering and screenshots
211+
- In [headless mode](/browsers/headless), the viewport width and height still apply for rendering and screenshots, but the `refresh_rate` parameter is ignored

0 commit comments

Comments
 (0)