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

Viewport meta element: interactive-widget property #706

Open
BenjaminAster opened this issue Sep 17, 2024 · 1 comment
Open

Viewport meta element: interactive-widget property #706

BenjaminAster opened this issue Sep 17, 2024 · 1 comment
Labels
focus-area-proposal Focus Area Proposal

Comments

@BenjaminAster
Copy link

BenjaminAster commented Sep 17, 2024

Description

WebKit currently does not implement the interactive-widget property for the viewport <meta> element, meaning that there is no way to opt-in to layout viewport resizing when a virtual keyboard is shown. Layout viewport resizing being disabled means that the virtual keyboard is simply drawn on top of the site and has the negative effect that toolbars on the bottom of the page, or even ones at the top of the page if the input element is at the bottom, are simply not shown when the virtual keyboard is active. Instead, the site becomes scrollable, even if the <body> has a height of 100dvh.

Chromium browsers on Android have, for compatibility with iOS, changed their behavior to align with WebKit about two years ago, while also implementing the interactive-widget viewport meta property that lets developers opt-in to the old behavior which actually resizes the page when a virtual keyboard is shown, which is preferable in almost all situations.

Firefox on Android has just implemented interactive-widget and will also change their behavior to default to WebKit's behavior, effectively matching Chromium's behavior exactly.

So once Firefox' new implementation has shipped, WebKit will be the only one left where making the layout viewport resizable via interactive-widget is not supported.

Specification

https://drafts.csswg.org/css-viewport-1/#interactive-widget-section

Additional Signals

WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=259770

@BenjaminAster BenjaminAster added the focus-area-proposal Focus Area Proposal label Sep 17, 2024
@BenjaminAster BenjaminAster changed the title Viewport meta tag: interactive-widget property Viewport meta element: interactive-widget property Sep 18, 2024
@zcorpan
Copy link
Member

zcorpan commented Oct 24, 2024

I don't see any tests in wpt for <meta name=viewport> (should be here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

2 participants