Skip to content

Support overriding screen dimensions #981

@lutien

Description

@lutien

To support emulation of mobile devices, the clients should be able to emulate screen.width/screen.heights properties. CDP also supports it via Emulation.setDeviceMetricsOverride.
The question is here what would be the best interface. I see a few options:

  • the viewport settings set via browsingContext.setViewport command should automatically apply to screen dimensions;
  • browsingContext.setViewport command has a new argument/s to set the screen dimensions independently of viewport;
  • we have a new command to just set the screen settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-discussionIssues to be discussed by the working group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions