Skip to content

Expose an API to emulate device resolution (devicePixelRatio) #1547

@noamr

Description

@noamr

Continuing the discussion in #1378 (comment)
This came up from trying to create web platform tests that take srcset into account.

All browser engines today contain an option to emulate devicePixelRatio.
Several web features rely on this - for example, responsive images.
However, there is no cross-browser API to emulate this value for the purpose of testing.

Suggesting that this would be a parameter when creating a window, or an additional POST (similar to /rect)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions