Skip to content

Viewport meta element: interactive-widget property #706

Closed

Description

@BenjaminAster

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

Activity

  1. changed the title [-]Viewport meta tag: `interactive-widget` property[/-] [+]Viewport meta element: `interactive-widget` property[/+] on Sep 18, 2024
  2. zcorpan commented on Oct 24, 2024

    @zcorpan
    Member

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

  3. wpt-interop commented on Feb 13, 2025

    @wpt-interop
    Collaborator

    Thank you for proposing Viewport meta element: interactive-widget property 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.

  4. foolip commented on Feb 17, 2025

    @foolip
    Member

    Updating labels to reflect that this was accepted as an investigation area.

  5. added
    accepted
    investigation-effort-proposal
    and removed
    focus-area-proposal
    on Feb 17, 2025
  6. spartanatreyu commented on Sep 5, 2025

    @spartanatreyu

    What was the results of this investigation effort?

    Do we have tests for interactive-widget?

    Can we submit interactive-widget for Interop 2026?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedinvestigation-effort-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions