Skip to content

Commit ae23192

Browse files
author
Anders Hartvoll Ruud
committed
[scroll-animations-1] Make view-timeline take a list of singles
Current grammar has two comma-separated lists inside an outer comma- separated list. This means specifying two timelines would look like "timeline1, timeline2, inline, block", which obviously isn't what we want. Instead we should follow how the 'animation' shorthand works, and let the outer comma-separated list take space-separated single items: "timeline1 inline, timeline2 block".
1 parent 0dc8a83 commit ae23192

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

scroll-animations-1/Overview.bs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,16 @@ spec: cssom-view-1; type: dfn;
274274

275275
<pre class='propdef'>
276276
Name: scroll-timeline-name
277-
Value: none | <<custom-ident>>
277+
Value: <<single-timeline-name>>
278278
Initial: none
279279
Applies to: [=scroll containers=]
280280
Inherited: no
281281
Computed value: the specified keyword
282282
Animation type: not animatable
283283
</pre>
284284

285+
<span class=prod><dfn>&lt;single-timeline-name></dfn> = none | <<custom-ident>></span>
286+
285287
Specifies a name for the [=scroll progress timeline=]
286288
associated with this [=scroll container=].
287289
The axis for this timeline is given by 'scroll-timeline-axis'.
@@ -290,14 +292,16 @@ spec: cssom-view-1; type: dfn;
290292

291293
<pre class='propdef'>
292294
Name: scroll-timeline-axis
293-
Value: block | inline | vertical | horizontal
295+
Value: <<single-timeline-axis>>
294296
Initial: block
295297
Applies to: [=scroll containers=]
296298
Inherited: no
297299
Computed value: the specified keyword
298300
Animation type: not animatable
299301
</pre>
300302

303+
<span class=prod><dfn>&lt;single-timeline-axis></dfn> = block | inline | vertical | horizontal</span>
304+
301305
Specifies an axis for the [=scroll progress timeline=]
302306
associated with this [=scroll container=].
303307
The name for this timeline is given by 'scroll-timeline-name'.
@@ -442,7 +446,7 @@ spec: cssom-view-1; type: dfn;
442446

443447
<pre class='propdef'>
444448
Name: view-timeline-name
445-
Value: none | <<custom-ident>>#
449+
Value: <<single-timeline-name>>#
446450
Initial: none
447451
Applies to: all elements
448452
Inherited: no
@@ -461,7 +465,7 @@ spec: cssom-view-1; type: dfn;
461465

462466
<pre class='propdef'>
463467
Name: view-timeline-axis
464-
Value: [ block | inline | vertical | horizontal ]#
468+
Value: <<single-timeline-axis>>#
465469
Initial: block
466470
Applies to: all elements
467471
Inherited: no
@@ -517,7 +521,7 @@ spec: cssom-view-1; type: dfn;
517521

518522
<pre class='propdef shorthand'>
519523
Name: view-timeline
520-
Value: [ <<'view-timeline-name'>> || <<'view-timeline-axis'>> ]#
524+
Value: [ <<single-timeline-name>> || <<single-timeline-axis>> ]#
521525
Applies to: all elements
522526
</pre>
523527

0 commit comments

Comments
 (0)