[Webkit-unassigned] [Bug 161611] Support ScrollIntoViewOptions for Element.scrollIntoView
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 4 00:24:39 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=161611
--- Comment #6 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
(In reply to Frédéric Wang (:fredw) from comment #5)
> ScrollIntoViewOptions has some ScrollLogicalPosition parameters to specify
> alignments, which I think can be implemented here independently of the
> scroll behavior feature (and vice-versa), similarly to what was done in bug
> 161610 for ScrollToOptions.
So thinking about it, I think it will be more convenient to introduce ScrollIntoViewOptions before implementing scroll-behavior.
I think this can be a first basic implementation (that maybe does not match exactly CSSOM View): just map block/inline parameters into the proper parameters of scrollRectToVisible, with "nearest" interpreted as ScrollAlignment::alignToEdgeIfNeeded and perhaps ignoring directionality/orientation for now. This would at least make thing compatible with the current one-parameter implementation and avoid losing the alignment features when one passes ScrollBehavior.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180904/b6f7d12e/attachment.html>
More information about the webkit-unassigned
mailing list