[scroll anchoring] add opt-in distinct from auto behavior |
|||
Issue descriptionScroll anchoring has accumulated a lot of hacks and heuristics for web compatibility. To get a saner platform, we could extend overflow-anchor to support three modes: - none - opt out, no scroll anchoring - auto - default mode, scroll anchoring with hacks - visible - opt in, scroll anchoring without hacks In the opt in mode, we would disable the following hacks: (1) bounce suppression (for issue 598233 , issue 601906 , and issue 603376 ) (2) limit of 20 adjustments between user scrolls (for issue 601906 ) (3) exclusion of position:absolute with non-zero left/top (for issue 604996 ) (4) suppression during non-scrolling drag gestures (in progress for issue 628074 ) (5) suppression after border/padding changes (in progress for issue 630788 ) (Note that hack #5 might obviate the need for hacks #1 and #2.) Ojan also asked to change "visible" back to "viewport" contrary to suggestion on https://github.com/WICG/interventions/pull/20 review thread. I have no opinion either way on that.
,
Aug 10 2016
Does it count as a fight if one side doesn't fight back? I don't care about the name. :)
,
Aug 10 2016
How will the behavior for 'auto' be explained on the spec / to the developers? Is the aim here to ultimately converge 'auto' with 'visible'?
,
Aug 10 2016
The approach we've taken so far is to spec all the hacks, so I assume we will continue to spec the "auto" hacks. Convergence would be nice but I wouldn't count on it happening. If we need the hacks today we will probably need them for the forseeable future.
,
Aug 25 2016
,
Sep 6 2016
I think this is lower-priority now thanks to SANACLAP (r413010), but keeping it open pending discussion on https://github.com/WICG/interventions/issues/2. Currently the only changes our hypothetical opt-in would trigger are: (1) disabling SANACLAP (2) disable position-change suppressions proposed for issue 641814
,
Oct 26 2016
Let's close this one - after issue 658834 we have an even smaller set of suppression triggers, and I haven't heard strong support for adding an opt in. |
|||
►
Sign in to add a comment |
|||
Comment 1 by tabatkins@chromium.org
, Aug 10 2016