w3c/csswg-drafts

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

Open

#1.708 geöffnet am 9. Aug. 2017

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)HTML (545 Forks)batch import
Closed Accepted by CSSWG ResolutionHelp WantedNeeds Editscssom-view-1

Repository-Metriken

Stars
 (3.546 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 87T 7h) (24 gemergte PRs in 30 T)

Beschreibung

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. (Note, according to MDN, ScrollIntoViewOptions have only been implemented in Gecko.)

Contributor Guide