Repository navigation
Description
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
Additional Signals
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Viewport meta tag: `interactive-widget` property[/-][+]Viewport meta element: `interactive-widget` property[/+]zcorpan commentedon Oct 24, 2024
I don't see any tests in wpt for
<meta name=viewport>(should be here).wpt-interop commentedon Feb 13, 2025
Thank you for proposing Viewport meta element:
interactive-widgetproperty for inclusion in Interop 2025.We are pleased to let you know that this proposal was accepted as part of the Mobile Testing investigation area. You can follow the progress of this investigation area on the Interop 2025 dashboard.
For an overview of our process, see proposal selection. Thank you for contributing to Interop 2025!
Posted on behalf of the Interop team.
foolip commentedon Feb 17, 2025
Updating labels to reflect that this was accepted as an investigation area.
spartanatreyu commentedon Sep 5, 2025
What was the results of this investigation effort?
Do we have tests for
interactive-widget?Can we submit
interactive-widgetfor Interop 2026?