Skip to content

Commit f566763

Browse files
Remove 'auto' value for ScrollDirection (#32)
As specced this value causes implementation difficulties around the definition of 'scrollable' and the possibility of instability in the resultant ScrollTimeline (see issues #15 and #16). For now we have resolved to just remove it, with "block" becoming the default for a ScrollTimeline.
1 parent f39de50 commit f566763

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

Overview.bs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ This content can't build the CSS only.
304304

305305
306306
enum ScrollDirection {
307-
"auto",
308307
"block",
309308
"inline",
310309
"horizontal",
@@ -315,11 +314,6 @@ enum ScrollDirection {
315314
The {{ScrollDirection}} enumeration specifies a direction of scroll of a
316315
scrollable element.
317316

318-
: auto
319-
:: If only one direction is scrollable, selects that direction.
320-
Otherwise selects the direction along the [=block axis=], conforming to
321-
writing mode and directionality.
322-
323317
: block
324318
:: Selects the direction along the [=block axis=], conforming to writing mode
325319
and directionality.
@@ -341,24 +335,14 @@ directions allows web developers to animate both logical (e.g.
341335
margin-inline-start) and physical (e.g. transform) properties with good
342336
behavior under different directionalities and writing modes.
343337

344-
345-
346-
What about a value that means, "the longest scroll direction"? That would be
347-
more reliable than "auto" for the case where layout differences could mean that,
348-
although normally you only expect the block direction to be scrollable, on
349-
some devices you end up with a small scrollable range in the inline direction
350-
too.
351-
352-
353-
354338
### The {{ScrollTimeline}} interface ### {#scrolltimeline-interface}
355339

356340
357341
enum ScrollTimelineAutoKeyword { "auto" };
358342

359343
dictionary ScrollTimelineOptions {
360344
Element scrollSource;
361-
ScrollDirection orientation = "auto";
345+
ScrollDirection orientation = "block";
362346
DOMString startScrollOffset = "auto";
363347
DOMString endScrollOffset = "auto";
364348
(double or ScrollTimelineAutoKeyword) timeRange = "auto";

0 commit comments

Comments
 (0)