Skip to content
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

Opt-in meta tag for virtual keyboard to affect layout, not just visual viewport #65

Open
bokand opened this issue Sep 21, 2022 · 2 comments
Assignees
Labels
from: Google Proposed, edited, or co-edited by Google. topic: device apis Spec relates to device APIs: access to device-specific hardware, sensors, and interfaces topic: layout Spec relates to layout topic: markup Spec relates to markup: elements, attributes, etc venue: W3C CSS WG

Comments

@bokand
Copy link

bokand commented Sep 21, 2022

Request for position on an emerging web specification

Information about the spec

Design reviews and vendor positions

Anything else we need to know

This isn't really a specification but an attempt to align on interoperable behavior (in a historically underspecified area).

The virtual keyboard on Safari iOS resizes only the visual viewport, without affecting page layout. On Android Chrome and Firefox, the virtual keyboard resizes the initial-containing-block of a page.

This proposal aims to align mobile browsers on the iOS model by default. We cannot do this without breaking some valid use cases so plan to add a new keyword in the viewport meta tag to allow authors to trivially opt back in to the Android "resize-initial-containing-block" mode.

@othermaciej
Copy link

On the surface, this doesn't ask for review of a spec, and proposes changing other implementations to align with Safari iOS behavior, so there'd be nothing to review.

However, there is a proposal to opt into the Android behavior which would presumably be applicable to Safari too, so morphing this into a proposal for <meta name="viewport" content="virtual-keyboard=resize-layout">

@othermaciej othermaciej changed the title Virtual keyboard resizes visual viewport Opt-in meta tag for virtual keyboard to affect layout, not just visual viewport Sep 25, 2022
@othermaciej othermaciej added topic: layout Spec relates to layout topic: markup Spec relates to markup: elements, attributes, etc topic: device apis Spec relates to device APIs: access to device-specific hardware, sensors, and interfaces venue: W3C CSS WG from: Google Proposed, edited, or co-edited by Google. labels Sep 25, 2022
@hober hober assigned smfr and whsieh Mar 27, 2023
@jcubic
Copy link

jcubic commented Nov 20, 2023

I wish something like this exists in iOS Safari. Right now my mobile app (library and every single app that uses my library jQuery Terminal in full-screen mode) is broken on iOS Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. topic: device apis Spec relates to device APIs: access to device-specific hardware, sensors, and interfaces topic: layout Spec relates to layout topic: markup Spec relates to markup: elements, attributes, etc venue: W3C CSS WG
Projects
Development

No branches or pull requests

5 participants