bokand / bokand.github.io

MIT License
24 stars 6 forks source link

Firefox >= 67 implements "minimum scale size" fixed viewport sizing #9

Open theres-waldo opened 5 years ago

theres-waldo commented 5 years ago

Firefox, as of version 67, now implements Chromium's "minimum scale size" model for sizing the fixed viewport. That is to say:

These changes have been landing incrementally since Firefox 65, but it should all be in place as of Firefox 67 (which is in beta as of the time of this writing).

(*) There is a remaining known inconsistency with Chromium regarding the "intrinsic minimum" scale: Firefox computes it as the larger of the scale where the content height fits the visual viewport height, and the scale where the content width fits the visual viewport width. Chromium seems to consider the width only. This is tracked in bug 1508177 and we plan to align with the Chromium behaviour here too.

bokand commented 5 years ago

That's great news, thanks for your work here! I'll try to play around and see if I can spot any issues and update the documentation.

BTW, is Firefox implementing the VisualViewport API? I believe Safari is turning it on soon.

With all three of us aligning on the major pieces around viewports it'd be great to start smoothing out some of the details and finally reach interop in this space. I'm currently tied up with other things but once I finish that I'd love to get back to this and start formally specifying the behaviors we all agree on and fixing the few places we don't.

theres-waldo commented 5 years ago

I'll try to play around and see if I can spot any issues and update the documentation.

Thanks!

BTW, is Firefox implementing the VisualViewport API? I believe Safari is turning it on soon.

Yep. We already have an implementation behind a pref. Enabling it by default is one of the next viewport-related things I'm planning to look at :)

With all three of us aligning on the major pieces around viewports it'd be great to start smoothing out some of the details and finally reach interop in this space. I'm currently tied up with other things but once I finish that I'd love to get back to this and start formally specifying the behaviors we all agree on and fixing the few places we don't.

That sounds great!