api.Window.devicePixelRatio - Does change with page zoom in Safari (webkit)
Maintainers usually reply within 1 day
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
- Domain
- documentation, testing-qa
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
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
devicePixelRatioon 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/
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mdn/browser-compat-data
-
Web extensions - Safari Technology Preview 257 data and the message_serialization manifest keyPossibly taken @xeenon claimed this today. Openneeds triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mdn/browser-compat-data#31192 ·
Maintainers usually reply within 1 day
-
api.WGSLLanguageFeatures - Firefox supports three featuresPossibly taken @Manishram-ai claimed this 1 day ago. Opendata:api needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
mdn/browser-compat-data#31175 ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mdn/browser-compat-data#31069 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mdn/browser-compat-data#31057 · 2 comments ·
Maintainers usually reply within 1 day
-
data:html needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mdn/browser-compat-data#30998 ·
Maintainers usually reply within 1 day
All issues in mdn/browser-compat-data
Similar issues
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
molgenis/molgenis-emx2#7059 ·
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
needs-format
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Niko1221/Strata#6251 · 1 comment ·
Maintainers usually reply within 5 days
-
area: plugins documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
CatVinci-Studio/Textus#727 ·
Maintainers usually reply within 1 day