diff --git a/browsers/viewport.mdx b/browsers/viewport.mdx index 0b2b752..4b2f2b6 100644 --- a/browsers/viewport.mdx +++ b/browsers/viewport.mdx @@ -231,13 +231,14 @@ await kernel.browsers.update(kernel_browser.session_id, viewport={"width": 1024, There are important limitations when changing the viewport: -- **Headful browsers**: You can't resize the viewport while [live view](/browsers/live-view) is active or while a [replay](/browsers/replays) is actively recording unless you set the `force` flag to `true`. +- **Headful browsers with live view active**: You can't resize the viewport while [live view](/browsers/live-view) is connected. +- **Headful browsers with replay recording active**: You can't resize the viewport while a [replay](/browsers/replays) is actively recording unless you set `viewport.force` to `true`. - **Headless browsers**: Changing the viewport triggers a Chromium restart, which takes several seconds and may disrupt active CDP connections. -### Force resizing during recording +### Force resizing during replay recording -If you need to resize the viewport while a replay is actively recording, set `force` to `true` in the update request. This stops the current recording, resizes the viewport, and restarts the recording — resulting in multiple replay segments for the session. +If you need to resize the viewport while a replay is actively recording, set `force` to `true` in the update request. This stops the current replay recording, resizes the viewport, and starts a new replay recording segment for the same session. ```typescript Typescript/Javascript