Skip to content

Support deviceScaleFactor in --viewport parameter #1140

@Aalivexy

Description

@Aalivexy

Is your feature request related to a problem? Please describe.

Currently, we need to use two separate parameters to set viewport with scaling:

  • --viewport=1920x1080 for dimensions
  • --chrome-arg=--force-device-scale-factor=2 for zoom level

Describe the solution you'd like

Extend the --viewport parameter parsing to support an optional third value for deviceScaleFactor:

  • Current format: 1920x1080 (width x height)
  • Proposed format: 1920x1080x2 (width x height x deviceScaleFactor)

Describe alternatives you've considered

Use emulate tool after startup: Set deviceScaleFactor via the emulate tool

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions