Skip to content

Conversation

Qiyu8
Copy link
Contributor

@Qiyu8 Qiyu8 commented Mar 31, 2020

Fixes #37585
All tests passed.
The Visual Viewport API is designed to provide an explicit mechanism for developers to query and potentially modify the properties of the visual viewport. It also introduces events that allow the page to listen for changes in the visual viewport, allowing UX that explicitly wants to react to these changes to do so. For example, the page could keep a small text-formatting bar above the OSK.

@orta
Copy link
Contributor

orta commented Jun 5, 2020

We're a little conflicted on this:

For

It's been in safari and chrome production for a few years, and available via a flag in Firefox

Against

It's a community group draft, with no goals to go on the standards track

It is not a W3C Standard nor is it on the W3C Standards Track.

and MDN pushes it as being experimental pretty hard


I think we're gonna be blocked on this until one of the following happens:

  • firefox allows this in prod
  • it gets past draft stage

I'd recommend adding it to definitely typed if it's a blocker

@orta orta added the Waiting on standards We're waiting on the standards process (or more browser support) label Jun 5, 2020
@saschanaz
Copy link
Contributor

Per https://bugzilla.mozilla.org/show_bug.cgi?id=1551302 this is enabled by default in Firefox Preview on Android.

@orta
Copy link
Contributor

orta commented Jun 12, 2020

OK, thanks @saschanaz - I re-read the spec and if it's in Firefox for android, I think this is considered mainstream enough to be added. It feels like something that is much more useful on mobile browsers vs desktop, so having pretty much all of them doing it in prod works for me.

@orta orta merged commit 8aa99b7 into microsoft:master Jun 12, 2020
@Qiyu8 Qiyu8 deleted the supportVisualViewport branch June 15, 2020 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting on standards We're waiting on the standards process (or more browser support)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add VisualViewport type definitions

3 participants