--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
My thinking on this has changed. I'm not confident we could ship the viewport API responsibly in the short term with the uncertainty over what Safari is going to do with their visual viewport implementation. If they stick with their current implementation (which I think is likely), the viewport API is mostly unneeded since visual viewport information is contained in `window.innerWidth|Height and window.scrollX|Y`. The only thing that would really be missing is a resize event for the visual viewport.Given that the OSK change has immediate benefits and improves interop, I think shipping this now is preferable. This does break the "stick things above the keyboard" use case but I haven't seen any examples of that (the G+ page no longer does it) and for existing content - the breakage should be small, users can still scroll down to see a position: fixed element. The fact that you can't do it on Safari (I haven't tried PhistucK's solution yet, but even if it works...eww) means web developers wouldn't get much from this even if we allowed it. IMO, it's better to align with Safari (and Edge) now and work with them to make this use case viable.
On Fri, Mar 10, 2017 at 11:13 AM, 'David Bokan' via blink-dev <blin...@chromium.org> wrote:My thinking on this has changed. I'm not confident we could ship the viewport API responsibly in the short term with the uncertainty over what Safari is going to do with their visual viewport implementation. If they stick with their current implementation (which I think is likely), the viewport API is mostly unneeded since visual viewport information is contained in `window.innerWidth|Height and window.scrollX|Y`. The only thing that would really be missing is a resize event for the visual viewport.Given that the OSK change has immediate benefits and improves interop, I think shipping this now is preferable. This does break the "stick things above the keyboard" use case but I haven't seen any examples of that (the G+ page no longer does it) and for existing content - the breakage should be small, users can still scroll down to see a position: fixed element. The fact that you can't do it on Safari (I haven't tried PhistucK's solution yet, but even if it works...eww) means web developers wouldn't get much from this even if we allowed it. IMO, it's better to align with Safari (and Edge) now and work with them to make this use case viable.This doesn't sound like a good compromise to me, you're basically saying if you want to build a competitive PWA chat app on android you can't do it on the web, since you can't get a toolbar to be above the keyboard which every modern chat app does (Hangouts, Facebook, etc.)It's unfortunate that Safari has done something else, but they also don't have a thriving PWA ecosystem with saved to home screen apps that feel native like we do.It's very important we remain competitive from a UX perspective, and having a toolbar above the keyboard is extremely common UX these days.
When using pinch-to-zoom, fixed and sticky element positioning has improved behavior using a “visual viewports” approach. Using the visual viewports model, focusing an input field that triggers the on-screen keyboard no longer disables fixed and sticky positioning in Safari on iOS.
--
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/Tr43oT4DQoY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blink-dev+unsubscribe@chromium.org.