Issue metadata
Sign in to add a comment
|
Ship document.rootScroller |
||||||||||||||||||||||
Issue descriptionChange description: Introduce API to allow non-<html> Elements to scroll like the viewport (e.g. hide URL bar) Changes to API surface: -Add `document.rootScroller` attribute Links: Public standards discussion: https://github.com/bokand/NonDocumentRootScroller/blob/master/howto.md Support in other browsers: Internet Explorer: N/A Firefox: N/A Safari: N/A Standards discussion is still early as I've just finished an experimental implementation. There's no official-looking specs yet or target milestone. This bug will track progress towards standardization.
,
Sep 5 2017
,
Sep 9 2017
Am I right to assume that the current implementation requires the scrollable element to exactly fill the viewport? And if so, what is the rationale for this decision? The explainer does not define any requirements for the root scroller: https://github.com/bokand/NonDocumentRootScroller/blob/master/explainer.md Please see the attached image. It is intended to illustrate a sitatuion where the scrollable section is positioned underneath the app-bar (so that the scroll-bar doesn't overlap it). In this example, my expectation would be for the scrollable section to be a valid rootScroller so that rubber-banding (or "glow") will appear from beneath the app-bar rather than the absolute top of the viewport. Will this behavior be supported by the current implementation? This is something I think will help bring PWA's even closer to their native counterparts.
,
Sep 11 2017
> The explainer does not define any requirements for the root scroller: https://github.com/bokand/NonDocumentRootScroller/blob/master/explainer.md It's a bit of a footnote in the "Proposed API" section but it is mentioned. The rationale is that it makes implementation easier and punts some of the hard UX decisions (i.e. how do we "expand" the root scroller if it doesn't fill the viewport, how do we show scrollbars when user pinch zooms, etc). See the updated https://github.com/bokand/NonDocumentRootScroller/blob/master/howto.md for more details. The decision is preliminary and meant to get this feature out sooner. Restrict and loosen based on use cases is a lot easier than launching a very general solution, finding out some aspect of it was a bad idea, and trying to restrict it. At first glance, your use-case seems like a natural follow-on so I think it'd make sense. Though I'll need some more time to think about it and possible consequences.
,
Sep 12 2017
This issue has been automatically relabelled type=task because type=launch-owp issues are now officially deprecated. The deprecation is because they were creating confusion about how to get launch approvals, which should be instead done via type=launch issues. We recommend this issue be used for implementation tracking (for public visibility), but if you already have an issue for that, you may mark this as duplicate. For more details see here: https://docs.google.com/document/d/1JA6RohjtZQc26bTrGoIE_bSXGXUDQz8vc6G0n_sZJ2o/edit For any questions, please contact owencm, sshruthi, larforge
,
Oct 27 2017
,
Nov 16 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bokan@chromium.org
, Aug 18 2017