Additional viewport-related improvements in Firefox
In recent Firefox releases we have implemented additional improvements to viewport-related behaviour:
- In Firefox 68, we shipped the Visual Viewport API (on Android).
- In Firefox 72, we fixed a remaining viewport sizing inconsistency related to the handling of the "intrinsic minimum" (described at the bottom of this post).
- In Firefox 73 (currently in beta), we have changed
innerWidth/innerHeightto reflect the dimensions of the fixed viewport.
With these changes, I believe we are now in alignment with Chrome on all viewport-related behaviours described in this explainer doc. Please let me know if I overlooked anything!
Awesome, congrats! I'll try to give it a look next week if I can find some time.
Any reason why the visual viewport API is limited to Android? IIRC desktop (used to?) not support pinch-zoom in the way mobile does. If that's the case, it's trivial to implement there as well. It doesn't provide any new information to pages but it does allow authors to write more uniform code.
Any reason why the visual viewport API is limited to Android? IIRC desktop (used to?) not support pinch-zoom in the way mobile does.
We are working on enabling pinch-zoom support on desktop, and plan to enable the Visual Viewport API as part of that support.