Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Get device pixel ratio #440

Open
Nick-Mazuk opened this issue Dec 11, 2023 · 0 comments
Open

Feature request: Get device pixel ratio #440

Nick-Mazuk opened this issue Dec 11, 2023 · 0 comments

Comments

@Nick-Mazuk
Copy link

It would be great to retrieve the device pixel ratio. Without it, you can't effectively use this crate for snapshot testing.

On Macs, the default device pixel ratio is 2.0. However, it seems like on GitHub Actions the device pixel ratio is 1.0. This means the dimensions of screenshots for local development and CI are different.

https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio

@Nick-Mazuk Nick-Mazuk changed the title Get device pixel ratio Feature request: Get device pixel ratio Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant