Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions scroll-animations-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ spec: cssom-view-1; type: dfn;
at the start edge of the [=scrollable overflow rectangle=],
it might not be possible to scroll to < 32% progress.

[=View progress timelines=] can be referenced in 'animation-timeline' by name
(see [[#timeline-scope]])
[=View progress timelines=] can be referenced
anonymously using the ''view()'' [=functional notation=]
or by name (see [[#timeline-scope]])
after declaring them using the 'view-timeline' properties
on the view progress subject.
In the Web Animations API,
Expand Down Expand Up @@ -404,6 +405,27 @@ spec: cssom-view-1; type: dfn;

## Anonymous View Progress Timelines ## {#view-timelines-anonymous}

### The ''view()'' notation ### {#view-notation}

The <dfn>view()</dfn> functional notation
can be used as a value of 'animation-timeline'
and specifies a [=view progress timeline=]
in reference to the nearest ancestor [=scroll container=].
Its syntax is

<pre class="prod">
<<view()>> = view( [ <<axis>> || <<'view-timeline-inset'>> ]? )
</pre>

By default,
''view()'' references the [=block axis=];
as for ''scroll()'',
this can be changed by providing an explicit <<axis>> value.

The optional <<'view-timeline-inset'>> value provides an adjustment
of the [=view progress visibility range=],
as defined for 'view-timeline-inset'.

### The {{ViewTimeline}} Interface ### {#viewtimeline-interface}

<pre class="idl">
Expand Down