subpixels: visualViewport.scale reveals subpixels (+ touch if pinch to zoom)
nothing to do, IDK if we can do anything, but documenting anyway, since we are looking at touch (and subpixels)
Links
- https://wicg.github.io/visual-viewport/#dom-visualviewport-scale <- this one
- https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/scale
- PoC: https://thorin-oakenpants.github.io/testing/vvscale.html
- also: it's in the TZP main test
Tests
- desktop (no touch) at dpr 1 = 1, zoom (ctrl+/-) = 1 ✓
- laptop (has touch) at dpr 1.75 = 1 ✓
- zoom (ctrl+/-) = 1 ✓
- FWIW: AFAICT F5 retains pinch-to-zoom, changing URL doesn't (so we good on eTLD+1 etc)
- pinch to zoom = value changes accordingly = reveals touch =
❌ (user generated)
- android
- pinch to zoom reveals touch = big deal, it's mobile ✓
my android
- real values
- dpi =
250
- dpr =
2.608695...
- dpi =
- tests: default page load (no user gestures/actions required)
- PoC:
0.42244893312454224
desktop mode on/off - TZP:
0.42244893312454224
desktop mode on - TZP:
0.42241308093070984
desktop mode off (android default)
- PoC:
notes
- RFP doesn't touch these tests
- IDK if we can do anything about it
- desktop mode on android
- even if I set the default to on (meatballs, desktop = on when not on a webpage), every page loads as off by default (probably doing something wrong)
- TZP's test page affects the value slightly, I set a minimum table width, IDK, I hate css
conclusion
- desktops/laptops with a keyboard
- we could always return 1 and disable pinch to zoom? which is not use friendly and probably an accessibility problem
- android
- geckoview is painful, sorry, which makes me sad
Edited by Thorin