Skip to content

Commit 813e931

Browse files
committed
Add case where offset is in the worng form
1 parent d6fe7b0 commit 813e931

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,21 +492,24 @@ The procedure to <dfn>resolve a container-based offset</dfn> given
492492
first matching condition from the following:
493493
<div class="switch">
494494

495-
: <var>offset</var> is <code>auto</code>
495+
: If <var>offset</var> is <code>auto</code>:
496496
:: Either the beginning or the ending of {{source}}'s scroll range in
497497
{{orientation}} depending on whether the offset is {{start}} or {{end}}.
498498

499-
: <var>offset</var> is a {{CSSNumberish}} and matches <<number>>
499+
: If <var>offset</var> is a {{CSSNumberish}} and matches <<number>>:
500500
:: The distance indicated by the value in <a value>pixel unit</a> along
501501
{{source}}'s scroll range in {{orientation}}.
502502

503503

504-
: <var>offset</var> is a {{CSSNumberish}} and matches
504+
: If <var>offset</var> is a {{CSSNumberish}} and matches:
505505
<<length-percentage>>
506506
:: The distance indicated by the value along {{source}}'s scroll range in
507507
{{orientation}} as expressed by absolute length, a percentage, or a
508508
''calc()'' expression that resolves to a <<length>>.
509509

510+
: Otherwise,
511+
:: null.
512+
510513
</div>
511514

512515
Note: The scroll range of an element is the range defined by its minimum and

0 commit comments

Comments
 (0)