Skip to content

Commit 69aabc8

Browse files
committed
[scroll-animations-1] Use <<length-percentage>> to allow calc() (w3c#4340)
1 parent d919543 commit 69aabc8

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,10 @@ A <dfn>container-based offset</dfn> is a scroll timeline offset that is declared
449449
only in relation with the <a>scroll container</a> as specified by {{source}}.
450450

451451
A [=container-based offset=] is provided in the {{DOMString}} form and can have
452-
one the following three values:
452+
one the following values:
453453

454454
* auto
455-
* <<length>>
456-
* <<percentage>>
455+
* <<length-percentage>>
457456

458457

459458
The procedure to <dfn>resolve a container-based offset</dfn> given
@@ -467,12 +466,10 @@ The procedure to <dfn>resolve a container-based offset</dfn> given
467466
:: Either the beginning or the ending of {{source}}'s scroll range
468467
in {{orientation}} depending on whether the offset is {{start}} or {{end}}.
469468

470-
: <var>offset</var> is a <<length>>
471-
:: The absolute distance indicated by the value along {{source}}'s scroll range
472-
in {{orientation}}.
473-
474-
: <var>offset</var> is a <<percentage>>
475-
:: The percentage distance along {{source}}'s scroll range in {{orientation}}.
469+
: <var>offset</var> is a <<length-percentage>>
470+
:: The distance indicated by the value along {{source}}'s scroll range in {{orientation}} as
471+
expressed by absolute length, a percentage, or a ''calc()'' expression that resolves to a
472+
<<length>>.
476473

477474
</div>
478475

@@ -831,7 +828,7 @@ instead of document's scrolling Element
831828
<pre class='descdef'>
832829
Name: start
833830
For: @scroll-timeline
834-
Value: auto | <<length>> | <<percentage>>
831+
Value: auto | <<length-percentage>>
835832
Initial: auto
836833
</pre>
837834

@@ -841,7 +838,7 @@ instead of document's scrolling Element
841838
<pre class='descdef'>
842839
Name: end
843840
For: @scroll-timeline
844-
Value: auto | <<length>> | <<percentage>>
841+
Value: auto | <<length-percentage>>
845842
Initial: auto
846843
</pre>
847844

0 commit comments

Comments
 (0)