You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There’s a bunch of suggested tests specifically targeted towards mobile devices that came out of the Viewport Investigation from Interop 2022: web-platform-tests/interop-2022-viewport#23 (comment). It would be nice if these could be possible as the outcome of this effort (Also see: #1)
We need to distill which internal APIs we need to achieve this:
Retract UA UI
Expand UA UI
Show OSK
Hide OSK
Set Page Scale
Pinch-Zoom (already covered by touch actions most likely)
Overscrolling (can current scroll handle it?)
Ability to get properties of device, e.g. screen size, pixel density, size of UA UI, … (because maybe not directly web exposed)
A lot of this probably just needs to be thrown over to WebDriver, but…
For the first two, we probably want to phrase it slightly more in line with CSS Value and define it along the lines of "expand the viewport to the large viewport size".
For Pinch Zoom, I do wonder how much the goal is Pinch Zoom specifically and how much is control over the visual viewport in general?
I think the device properties are either already exposed or are natural extensions of existing APIs. In practice for wpt you typically have out of band information that will tell you the pixel density, etc.
I think we should concentrate on the first five bullet points.
For onscreen keyboard an obvious WebDriver API would be something like:
browser.setVirtualKeyboard({visible: bool})
I don't know if something similar is enough for the UA UI case i.e. if we can get away with an API like
browser.setUIState({state: "visible" / "hidden"})
as an initial cut, or if we need more flexibility.
Oh, wasn’t aware that collapsed groups could not be expanded by anonymous viewers. Hereby corrected, with all groups expanded now.
Note that some results in the sheet are no longer accurate, as the sheet dates back to 2022. I am aware of the following changes since making that sheet:
Chrome (and Firefox too?) has aligned its default viewport resize-behavior when the on-screen keyboard gets shown with that of Safari.
Dynamic viewport units are broken in all 3rd party iOS browsers with a previous major iOS version release (I don’t know which version exactly)
IIRC that would be page zoom, which would then allow you to check the effect of a changed scale on the size of ICB. Visual Viewport Scale can be altered by pinch-zoom.
Activity
[-]Viewport-related tests[/-][+](Mostly dynamic) Viewport-related tests[/+]gsnedders commentedon Aug 26, 2025
One of our tasks for this year is:
web-platform-tests/interop-2022-viewport#23 (comment) has a list of suggested API:
A lot of this probably just needs to be thrown over to WebDriver, but…
For the first two, we probably want to phrase it slightly more in line with CSS Value and define it along the lines of "expand the viewport to the large viewport size".
For Pinch Zoom, I do wonder how much the goal is Pinch Zoom specifically and how much is control over the visual viewport in general?
For overscroll, we had tests in Interop 2022 which rely on scrolling to do that — see e.g. https://github.com/web-platform-tests/wpt/blob/6871b9f5cf0c788fb60676cf4e208d27cd572729/css/css-overscroll-behavior/overscroll-behavior.html#L77-L93. That said, one of the scenarios in Interop 2022 Viewport Investigation Test Results (though not visible to me, given it's View Only, and the grouped rows are collapsed!) is "Overscroll at Top, triggering Pull to Refresh", which is more problematic insofar as we can't really rely on pull to refresh being a feature.
For device properties — a lot of these are already exposed either via CSSOM or via WebDriver today. Would be good to know what if anything is missing.
jgraham commentedon Aug 27, 2025
I think the device properties are either already exposed or are natural extensions of existing APIs. In practice for wpt you typically have out of band information that will tell you the pixel density, etc.
I think we should concentrate on the first five bullet points.
For onscreen keyboard an obvious WebDriver API would be something like:
browser.setVirtualKeyboard({visible: bool})I don't know if something similar is enough for the UA UI case i.e. if we can get away with an API like
browser.setUIState({state: "visible" / "hidden"})as an initial cut, or if we need more flexibility.
I'm not sure about page scale.
bramus commentedon Aug 27, 2025
Oh, wasn’t aware that collapsed groups could not be expanded by anonymous viewers. Hereby corrected, with all groups expanded now.
Note that some results in the sheet are no longer accurate, as the sheet dates back to 2022. I am aware of the following changes since making that sheet:
gsnedders commentedon Feb 3, 2026
w3c/webdriver-bidi#1060
w3c/webdriver-bidi#1059
The context of this web-platform-tests/interop-2022-viewport#23 (comment) makes me unsure what this is meant to be: is this this page zoom, or is this the visual viewport scale?
Need to investigate whether touch actions suffice here, which depends on what level events are being injected.
As mentioned above, we have prior history of tests already testing this via scroll.
I think this we probably have to ask ourselves about on a per-property basis?
bramus commentedon Feb 3, 2026
IIRC that would be page zoom, which would then allow you to check the effect of a changed scale on the size of ICB. Visual Viewport Scale can be altered by pinch-zoom.