[csswg-drafts] [css-scroll-snap][cssom] Define interaction of ScrollIntoView options and scroll-snap

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap][cssom] Define interaction of ScrollIntoView options and scroll-snap ==
Scroll Snap and CSSOM View currently conflict with each other: they both attempt to define the position of the element wrt the viewport when scrolled into view.

For sure, Scroll Snap should win when there's no arguments given to the API.

I also think that the positioning arguments should be dropped in favor of control with the scroll snap properties, unless there's a compelling reason why a JS API call needs a different value than is given declaratively in CSS. (According to [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView), ScrollIntoViewOptions have only been implemented in Gecko.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1708 using your GitHub account

Received on Wednesday, 9 August 2017 16:45:05 UTC