api.Window.devicePixelRatio - Does change with page zoom in Safari (webkit)

Open Beginner friendly
#31,039 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Manishram-ai is already working on this.

Since Nov 17, 2026.

  • #31172 by @Manishram-ai — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, json

Research direction

Start with the Window.devicePixelRatio browser compatibility entry in the repository’s JSON data and compare its Safari support details with the linked Safari 26.4 release notes and WebKit bug 124862. Update the compatibility data to reflect that page zoom now affects devicePixelRatio in Safari 26.4, while preserving the separate open issue about resolution media queries. Check the data against the repository’s validation guidance; the issue does not name a test or file.

Written by the indexing model from the issue text.

Description

data:api needs triage
What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

In Safari, the devicePixelRatio does not change when the page is zoomed. See bug 124862.

If you go through that link:

I just tested this and it's true that it's true that Safari 26.5 updates its devicePixelRatio on page zoom.

The issue has been resolved.

Safari 26.4 is the version where that fix arrived according to the release notes.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

Something like:

The issue around zoom has been resolved in Safari 26.4, but there is still an issue around (resolution: dppx) media queries not updating on zoom: https://bugs.webkit.org/show_bug.cgi?id=317839

Did you test this? If so, how?

No.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://webkit.org/blog/17674/release-notes-for-safari-technology-preview-234/

https://developer.apple.com/documentation/safari-release-notes/safari-26_4-release-notes#Resolved-Issues

In the above release notes this is the mention of the commit that allegedly fixes it:

"Fixed devicePixelRatio so that page zoom now affects the main frame consistently with iframes, keeping their values synchronized. (163857955)"

MDN Content needs to be updated too:
https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio#browser_compatibility

Do you have anything more you want to share?

Previous mention of this issue: https://github.com/mdn/browser-compat-data/issues/22277

MDN URL

No response

MDN metadata

No response

Dominant language
JSON
Stars
5.8k
Forks
2.7k
Avg merge
2d 20h
Merged PRs (30d)
160

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mdn/browser-compat-data

All issues in mdn/browser-compat-data

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.