Open rodneyrehm opened 9 years ago
CSSOM View: Element.scrollIntoView() does not yet cover anything close to what the proprietary scrollIntoViewIfNeeded()
proposes. Implementations of Element.scrollIntoView()
in Gecko and Blink will scroll the entire document, even if the target element is already in view.
investigate how well Element.scrollIntoView() is supported, what WebKit's proprietary [scrollIntoViewIfNeeded()]() (polyfill) brings to the table and how any of this can/should be used in scrollable lists. scrollIntoViewIfNeeded is likely not going to happen, but CSSOM View may have an answer.
scrollIntoView()
may cause scrolling even when the element in question already is in view. I assume that's why WebKit introducedscrollIntoViewIfNeeded()
. It may also move the entire page, instead of only the next scroll container