Skip to content

Commit 9140b79

Browse files
committed
Specify which document's document element is used as the scrollSource if one is not specified explicitly. Fixes issue #5.
1 parent a912248 commit 9140b79

File tree

2 files changed

+169
-138
lines changed

2 files changed

+169
-138
lines changed

Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ not by wall-clock time, but by the progress of scrolling in a [=scroll container
376376
:: The scrollable element whose scrolling triggers the activation and drives the
377377
progress of the timeline.
378378

379-
If this is not specified, the document element is used.
379+
If this is not specified, the document element of the [=active document=] for the
380+
current [=browsing context=], as determined at the time the {{ScrollTimeline}} is
381+
constructed, is used.
380382

381383
Note that the {{scrollSource}}'s {{ownerDocument}} may change over the lifetime
382384
of the scroll timeline. This does not affect the scroll timeline; the timeline

0 commit comments

Comments
 (0)