Intent to Ship: CSS Scroll Snapping on Desktop

100 views
Skip to first unread message

Kearwood "Kip" Gilbert

unread,
Mar 16, 2015, 2:24:53 PM3/16/15
to dev-pl...@lists.mozilla.org
As of March 18, 2015 I intend to turn on by default CSS Scroll Snapping
on Desktop. It has been developed behind the
layout.css.scroll-snap.enabled preference. This feature has already
been enabled on B2G.

Platform coverage:
This has already been enabled on B2G (Firefox OS). All desktop
platforms will be enabled once scroll bar support for CSS scroll
snapping lands (Bug 969250). Fennec will be enabled once the C++ based
APZC implementation ships for Fennec (Bug 1138668).

This feature was previous discussed in this "intent to implement" thread:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/HX9lwWZ250o/discussion

Feedback during the draft updates on the css-snappoints specification
took place on the w3.org www-style mailing list.

Bug to turn on by default:

Bug 1138658 - Enable CSS Scroll Snapping by Default on Desktop

Link to standard:
http://dev.w3.org/csswg/css-snappoints/

The entirety of the W3 specification is implemented, with one
exception. In section 4 (Scroll Snap Types: the 'scroll-snap-type'
property), the specification reads, "If the content changes such that
the visual viewport would no longer rest on a snap point (e.g. content
is added, moved, deleted, resized), the scroll offset must be modified
to maintain this guarantee.". Support for this is tracked in Bug
1124324 (Perform instant and smooth scrolls to maintain guarantees set
by scroll snapping CSS attributes when content changes) and will be
landed separately.

- Kearwood "Kip" Gilbert


Robert O'Callahan

unread,
Mar 16, 2015, 5:59:26 PM3/16/15
to Kearwood Kip Gilbert, dev-pl...@lists.mozilla.org
Excellent!

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.

Ehsan Akhgari

unread,
Mar 16, 2015, 6:08:45 PM3/16/15
to Kearwood "Kip" Gilbert, dev-pl...@lists.mozilla.org
Is this feature worth having a hacks blog post about? (hint: I think so!)
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>

Robert O'Callahan

unread,
Mar 16, 2015, 6:34:37 PM3/16/15
to Ehsan Akhgari, Kearwood Kip Gilbert, dev-pl...@lists.mozilla.org
On Tue, Mar 17, 2015 at 11:07 AM, Ehsan Akhgari <ehsan....@gmail.com>
wrote:

> Is this feature worth having a hacks blog post about? (hint: I think so!)


Yes!

Tantek Çelik

unread,
Mar 30, 2015, 9:38:25 PM3/30/15
to Robert O'Callahan, Kearwood Kip Gilbert, Ehsan Akhgari, dev-pl...@lists.mozilla.org
>From the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1138658

This will be on by default in 39 right?

Do we have any nice example pages to show it off?

Being able to use CSS Snap Points has also come up in recent
#indiewebcamp discussions, so FWIW, there are also independent web
developers who are ready and eager to implement this on their own
websites as well, in case you're looking for examples for your hacks
blog post.

Thanks,

Tantek

Eric Shepherd (Sheppy)

unread,
Apr 1, 2015, 7:21:54 PM4/1/15
to Tantek Çelik, Kearwood Kip Gilbert, Ehsan Akhgari, dev-pl...@lists.mozilla.org, Robert O'Callahan
FWIW documenting and providing examples for this is a candidate for a
Q2 deliverable for the MDN content team. I do not make promises yet,
however. ;)
--

Eric Shepherd
Senior Technical Writer
Mozilla
Blog: http://www.bitstampede.com/
Twitter: http://twitter.com/sheppy

Alex Webster

unread,
Apr 1, 2015, 9:39:50 PM4/1/15
to Eric Shepherd (Sheppy), Tantek Çelik, Kearwood Kip Gilbert, Ehsan Akhgari, dev-pl...@lists.mozilla.org, Robert O'Callahan
Please unsubscribe me
On Wed, Apr 1, 2015 at 7:22 PM Eric Shepherd (Sheppy) <eshe...@mozilla.com>
wrote:
Reply all
Reply to author
Forward
0 new messages