-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICB/LVP vs Virtual Keyboard, and the effect on Viewport Units #11
Comments
We covered this at the end of #20. Two-folded problem to tackle:
👉 Input welcome at the CSSWG Issue that covers this: w3c/csswg-drafts#7475 (Definitely check out the demo with the various behaviors, as described in the issue: https://flackr.github.io/web-demos/viewport/) Not marking this issue as Discussed just yet, as I would like to get answers to these two questions before we ask the CSSWG for resolutions:
|
Relevant to this discussion: Blink Intent to Ship: Android OSK resizes visual viewport by default + opt-out |
Spec Change PR for the viewport meta tag extension: w3c/csswg-drafts#7826 |
When an input gains focus, some devices – mostly mobile devices – will expose a Virtual Keyboard. As found through testing, some browsers resize the Layout Viewport – and thus the ICB – when doing so. Other browser do not resize the Layout Viewport in that case.
Resizing the Layout Viewport affects where
position: fixed
elements end up. These elements get laid out against the edge of the Layout Viewport. By (not) resizing the Layout Viewport, they might end up in different places in different browsersBy resizing the Layout Viewport, the ICB also gets resized, as the ICB size is derived from the Layout Viewport.
Resizing the ICB in its turn has an effect on the calculation of Viewport Units.
Some questions to spark the discussion:
The text was updated successfully, but these errors were encountered: