Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to Implement: CSS Scroll Snap Points

170 views
Skip to first unread message

Kip Gilbert

unread,
Dec 9, 2014, 3:28:58 PM12/9/14
to dev-pl...@lists.mozilla.org, Jet Villegas
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Summary:

CSS Scroll Snap Points introduces a set of CSS properties:

scroll-snap-type
scroll-snap-points-x
scroll-snap-points-y
scroll-snap-destiation
scroll-snap-coordinate

These properties describe the behavior of a scroll frame that will
automatically scroll smoothly to align itself to described snap
positions. This functionality is useful in any case where it is
desirable to scroll by fixed increments or to stop at element
boundaries, commonly used for image carousels and paged navigation.

A declarative interface enables the scrolling to remain responsive,
run asynchronously with Javascript, and implicitly inter-operate with
platform specific features such as momentum mouse-wheel/trackpad
scrolling and touchscreen fling gestures.

The Firefox implementation will lean heavily on the CSSOM-View smooth
scrolling implementation under-the-hood, inheriting the behavior and
animation model of CSSOM-View smooth scrolls when adjusting the scroll
offset to the snapping position.

Bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=945584

Link to Standard:

http://dev.w3.org/csswg/css-snappoints/

Platform coverage:

Desktop, Firefox OS, Android

CSS Scroll Snap Points will be enabled first on Desktop and Firefox
OS, followed by Android. Android will gain this functionality once
APZC and CSSOM-View smooth scrolling lands for Fennec:

https://bugzilla.mozilla.org/show_bug.cgi?id=1041833

Estimated or target release:

TBD

Preference behind which this will be implemented:

layout.css.scroll-snap.enabled


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUh1tIAAoJEHziBT1mB5A7MUsIAJ7TJckBitp/HbvogNMuu3/f
U3QCHYuIpGpaiNbuXegwZCp9KnfQzDbftHEcBsLHwEvbE6/3WRTxB5rzEcmEdYL0
Xf1708vobBYc+8mbxUdmgqFymknl3A/oYwI6Fz6cVyRXABo+by6i6b7KwaKCdbSi
D5HFNxAg89FtT7fb5Gx6JNWCpKb6Liw6GC3VOIAgDmmTSbpmXqfQP3U0RfcdfIqH
Gcvp0qVswNY1E/mAI8kCemenDPVCF8UmpqK9JjHyD0s1JphrGN3RtZRhb6juVoR9
NN82haeIlCDXR6A4Ovl9G23dsKI5/nU3Twcdhk4G9kcrFoy5/H0ewhVt88W+Eds=
=/xII
-----END PGP SIGNATURE-----

Robert O'Callahan

unread,
Dec 9, 2014, 5:15:37 PM12/9/14
to Kip Gilbert, dev-pl...@lists.mozilla.org, Jet Villegas
Yeah!

Rob
--
oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo
owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo
osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo
owohooo
osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o
oioso
oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo
owohooo
osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro
ooofo
otohoeo ofoioroeo ooofo ohoeololo.

一丝冰凉

unread,
Dec 9, 2014, 9:48:36 PM12/9/14
to
+1
0 new messages