Repository navigation
Description
Description
This is a reprise of this request made for Interop2024 and this request made for Interop2025.
Despite the Viewport Investigation Effort from Interop2022 and the Mobile Testing investigation area from Interop2025, viewport-related features are still not interoperable.
The focus of this proposal targets:
- Interoperable Viewport-Percentage Lengths – https://drafts.csswg.org/css-values/#viewport-relative-lengths
- Interoperable behavior of the Layout Viewport’s
innerWidthandinnerHeight:- https://www.w3.org/TR/CSS22/visuren.html#viewport
- https://drafts.csswg.org/cssom-view/#dom-window-innerwidth
- https://drafts.csswg.org/cssom-view/#dom-window-innerheight
- Interoperable behavior of the usage of the so called “viewport meta tag”, specifically:
viewport-fit– https://drafts.csswg.org/css-round-display/#extending-viewport-metainteractive-widget(also see Viewport meta element:interactive-widgetproperty #706) – https://drafts.csswg.org/css-viewport-1/#interactive-widget-section
- The Visual Viewport – https://drafts.csswg.org/cssom-view-1/#visualViewport
- The Viewport Interface – https://drafts.csswg.org/css-viewport-1/#the-viewport-interface
Note: this request excludes the Virtual Keyboard API, which is requested in #1016.
Specification
(see description)
web-feature
No response
Test Links
css-viewport tests: https://wpt.fyi/results/css/css-viewport?label=experimental&label=master&aligned (but those don’t test everything)
There are some basic tests using the units:
- https://wpt.fyi/results/css/css-values/viewport-units-compute.html?label=master&label=experimental&aligned&q=viewport
- https://wpt.fyi/results/css/css-values/viewport-units-parsing.html?label=experimental&label=master&aligned&q=viewport
- https://wpt.fyi/results/css/css-values/viewport-units-writing-mode.html?label=master&label=experimental&aligned&q=viewport
But these tests don’t actually test the changes that would occur on mobile. Some of the demos from https://github.com/web-platform-tests/interop-2022-viewport could form the basis for new tests.
Additional Signals
Bugs/Developer Sentiment:
- https://bugs.webkit.org/show_bug.cgi?id=255708 – “lvh/vh viewport units are incorrectly sized relative to the small viewport in SFSVC”
- https://bugs.webkit.org/show_bug.cgi?id=255852 – “Viewport units are often wrong in IABs using WKWebView”
- https://bugs.webkit.org/show_bug.cgi?id=250621 – “Initial container block (ICB) resizes in in-app browsers when scrolling”
- https://issues.chromium.org/issues/421706366 – “The viewport height units are wrongly reported on Chrome on iOS.”
- document.documentElement.clientHeight (and 100vh) changes on address bar hide (page scroll) mozilla-mobile/firefox-ios#8819
- New viewport units don't work on iOS mozilla-mobile/firefox-ios#22607
- https://mastodon.social/@Jespertheend/113164934631426820
- https://front-end.social/@bruno/113171710451870231
- https://bugs.webkit.org/show_bug.cgi?id=174362 – “window.innerWidth/height shouldn't change under pinch zoom”
- https://bugs.webkit.org/show_bug.cgi?id=279998 – “REGRESSION (iOS 18): svh and lvh are incorrect on iOS in third party browsers”
- Recent reports on social media of Safari 26 on iPadOS and iOS behaving incorrectly (1, 2, 3, 4)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Sep 16, 2025
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web features (from the web-features project) which are referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
getBoxQuads()
Feature getBoxQuads()
getBoxQuads()method, when called on a document, element, pseudo-element, or text node, returns the list ofDOMQuadobjects that represent the CSS boxes used to render the node.Visual viewport API
Feature Visual viewport API
visualViewportAPI provides a way to query and modify the user-visible viewport of a web page.emilio commentedon Sep 18, 2025
We really need tests for meta viewport in WPT.
jgraham commentedon Sep 19, 2025
One of the problems here is that we still lack the infrastructure to test changes to the viewport on mobile e.g. what happens when the virtual keyboard appears, or the URL bar, or other similar changes. That's something we're aware of and have been working on in the mobile-testing-investigation, but it's not going to be done in time for Interop 2026.
It would be really helpful to have a version of this proposal scoped to just the stuff that is either already covered by web-platform-tests, or which could be covered by web-platform-tests without new testing infrastructure. That would make it much easier to assess what accepting the proposal would actually entail, whilst understanding that it would only represent partial progress on the overall problem.
gsnedders commentedon Dec 14, 2025
To look through the linked issues:
This is apparently
SFSafariViewControllerspecific, which we don't have automated testing of and are unlikely to in the near future.This is specific to the app using
WKWebView, and the only app usingWKWebViewwe're likely to have testing of in the near future isSafari.This is specific to the app using
WKWebView, and the only app usingWKWebViewwe're likely to have testing of in the near future isSafari.I don't think we're likely to have automated testing of Chrome on iOS soon?
I don't think we're likely to have automated testing of Firefox on iOS soon?
I don't think we're likely to have automated testing of Firefox on iOS soon?
I don't think we're likely to have automated testing of Chrome on iOS soon?
This is specific to the app using
WKWebView, and the only app usingWKWebViewwe're likely to have testing of in the near future isSafari.I don't think we're likely to have testing of pinch zoom soon?
I'll let others comment on that issue, but as far as I'm aware, we believe this is people getting thrown off by some Chrome A/B experiment.
It's maybe worth re-testing all of these with iOS 26.1, given a lot of viewport bugs got fixed there. Some of them also get into largely unspecified things like
meta name=viewport, and reasonable questions about what the viewport size should be with regard to translucent UI elements.wpt-interop commentedon Feb 12, 2026
Thank you for proposing Viewports for Interop 2026.
We want to let you know it was not selected to be part of Interop this year.
On behalf of the entire Interop team, thank you for submitting it for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.
Posted on behalf of the Interop team.