Standardize or remove Element#scrollIntoViewIfNeeded() |
||||||||||
Issue descriptionChromium and WebKit have a Element#scrollIntoViewIfNeeded() method. EdgeHTML and Gecko do not. If standardized, it would be here: https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface Simon, I can't find any previous standards discussion, do you know of any?
,
Mar 9 2017
,
Mar 9 2017
,
Mar 9 2017
,
Mar 13 2017
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17152 The current standard version of scrollIntoViewIfNeeded is: elm.scrollIntoView({inline: "nearest", block: "nearest"});
,
Mar 13 2017
,
Mar 20 2017
Sounds like this should possibly be blocked on implementing element.scrollIntoView per spec: https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview dtapuska@, I can't find an open issue for that, do you think it would make sense to first to that and then try to remove scrollIntoViewIfNeeded()? The other path would be to first implement that and then define scrollIntoViewIfNeeded() in terms of it in the spec as well.
,
Mar 20 2017
Usage shows ElementScrollIntoViewIfNeeded is 0.0055% I expect that it is OK to remove this with such low usage. Sandra can you work at trying to figure out what the usage of it is on httparchive? Moving to be a Scroll issue and not a CSS issue.
,
Mar 21 2017
Is it currently possible to accurately reimplement scrollIntoViewIfNeeded() using other APIs? If so then we could probably offer that as a polyfill and attempt the removal without blocking on anything.
,
Sep 12 2017
Re my comment 5, that was not quite correct since it's not possible to not scroll if in view, and scroll to center if not in view. https://github.com/w3c/csswg-drafts/pull/1805 is a proposal to add that ability.
,
Sep 14 2017
,
Mar 3 2018
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by foolip@chromium.org
, Mar 9 2017