Expose the Visual Viewport API to web content
Categories
(Core :: Panning and Zooming, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: kats, Assigned: tanushree, Mentored)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete, feature, Whiteboard: [gfx-noted])
Attachments
(3 files, 2 obsolete files)
Reporter | ||
Updated•8 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Comment 4•6 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
mozreview-review-reply |
Assignee | ||
Comment 7•6 years ago
|
||
mozreview-review |
Assignee | ||
Comment 8•6 years ago
|
||
mozreview-review |
Comment 9•6 years ago
|
||
mozreview-review |
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 14•6 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 16•6 years ago
|
||
mozreview-review-reply |
Comment 17•6 years ago
|
||
mozreview-review |
Assignee | ||
Comment 18•6 years ago
|
||
Comment hidden (mozreview-request) |
Updated•6 years ago
|
Assignee | ||
Comment 20•6 years ago
|
||
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 23•6 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Comment 25•6 years ago
|
||
Comment 26•6 years ago
|
||
Assignee | ||
Comment 27•6 years ago
|
||
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
bugherder |
Comment 31•6 years ago
|
||
Comment 32•6 years ago
|
||
Comment 33•6 years ago
|
||
Comment 34•6 years ago
|
||
Comment 35•6 years ago
|
||
Comment 36•6 years ago
|
||
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #35)
(In reply to Botond Ballo [:botond] from comment #33)
Another thought: I don't really want to encourage web developers to use the
Visual Viewport API to emulate position:device-fixed, for a couple of
reasons...This makes sense; I'd love your help to work on a decent example.
Hi Chris! I wanted to follow up on this as the Visual Viewport API is shipping (on Android) in 68 (see bug 1512813).
We had a discussion about position: device-fixed
being the leading example of the Visual Viewport API, and it looks like David from the Chromium team (and who authored the API) agrees that it's not a great example, just the most obvious one to illustrate the API.
Given that, here is a proposal for how we could proceed:
- Turn the "Hide on zoom" example from the spec README into a second MDN example.
- Keep the
position: device-fixed
MDN example, but add a footnote mentioning that emulatingposition: device-fixed
in this way is not recommended as it can result in the fixed element flickering during scrolling.
How does that sound?
Comment 37•6 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #36)
Hi Chris! I wanted to follow up on this as the Visual Viewport API is shipping (on Android) in 68 (see bug 1512813).
We had a discussion about
position: device-fixed
being the leading example of the Visual Viewport API, and it looks like David from the Chromium team (and who authored the API) agrees that it's not a great example, just the most obvious one to illustrate the API.Given that, here is a proposal for how we could proceed:
- Turn the "Hide on zoom" example from the spec README into a second MDN example.
- Keep the
position: device-fixed
MDN example, but add a footnote mentioning that emulatingposition: device-fixed
in this way is not recommended as it can result in the fixed element flickering during scrolling.How does that sound?
I like it; done: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport#Examples
Let me know if you think this looks OK.
I changed the wording of the footnote to "should be used with care" rather than "not recommended". I feel that if we don't recommend it, then why show it at all? We could even swap it out for the "fixed to keyboard" example, if you think that would be better.
FYI, we are following bug 1512813 too, and will make sure to update the compat data in our round of Fx68 changes
Comment 38•6 years ago
|
||
Yup, that looks good, thanks!
(In reply to Chris Mills (Mozilla, MDN editor) [:cmills] from comment #37)
I changed the wording of the footnote to "should be used with care" rather than "not recommended". I feel that if we don't recommend it, then why show it at all? We could even swap it out for the "fixed to keyboard" example, if you think that would be better.
Fair enough. Keeping the example and the current "should be used with care" wording seems reasonable to me.
Comment 39•6 years ago
|
||
Fair enough. Keeping the example and the current "should be used with care" wording seems reasonable to me.
OK, cool. If you're happy, then I'm happy.
Description
•