Repository navigation
Closed
Labels
Description
Description
This is a partial reprise from this issue from last year, but this time not as an investigation project - something that was already covered in 2022.
The focus of the 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
Right now there is no interop across browsers on mobile, nor in WebViews and IABs.
Specification
(see list above)
Additional Signals
- https://bugs.webkit.org/show_bug.cgi?id=255708
- https://bugs.webkit.org/show_bug.cgi?id=255852
- https://bugs.webkit.org/show_bug.cgi?id=250621
- 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#11574
- https://mastodon.social/@Jespertheend/113164934631426820
- https://front-end.social/@bruno/113171710451870231
- https://bugs.webkit.org/show_bug.cgi?id=174362
Reacted by Yehonatan Daniv, Ryan Townsend, Konstantin Rouda, Kenta Moriuchi, Roderick Gadellaa, Bruno Stasse, Šime, Luuk Lamers, Arif, Vladimir Agafonov and 2 more
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ryantownsend commentedon Oct 10, 2024
@bramus does this cover the Virtual Keyboard? Because that’s a minefield that definitely needs a cross-browser CSS-only solution.
bramus commentedon Oct 10, 2024
The Virtual Keyboard API is not included in the scope of this proposal.
jgraham commentedon Oct 16, 2024
Is this proposal already covered by web-platform-tests (assuming that they can be run on mobile)?
bramus commentedon Oct 16, 2024
There are some basic tests using the units:
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.
gsnedders commentedon Oct 17, 2024
I don't think anyone currently is trying to tackle automated testing in web views or other embedded browsers (like Android's Custom Tabs or iOS's SFSafariViewController), for what it's worth, which makes those problems harder.
Even in general, while I think existing browsers with dynamic viewport sizing all hide/show UI elements on scroll, how much you have to scroll probably depends between browsers (and quite possibly how you scroll — I wouldn't be particularly surprised if some browser required a user scroll (v. from JS, or loading a fragment) to hide UI elements). I suspect that testing this in an automated way cross browser may be somewhat difficult?
johannesodland commentedon Oct 17, 2024
@bramus Firefox-ios closed their issue, so I opened a new one here: mozilla-mobile/firefox-ios#22607
wpt-interop commentedon Feb 13, 2025
Thank you for proposing The Layout Viewport and Viewport-Relative Lengths 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.