Defines how the screenshot should be scaled. `CSS` uses CSS pixels, while `DEVICE` uses physical device pixels.

Definition

enum ScreenshotScale {
  CSS
  DEVICE
}

Values

CSS

Scale the screenshot using CSS pixels. This means a 100x100px element in CSS will be 100x100px in the screenshot, regardless of device pixel ratio.

DEVICE

Scale the screenshot using physical device pixels. On a device with a 2x pixel ratio, a 100x100px CSS element will be 200x200px in the screenshot.