Upstream the spec has changed to allow this: https://github.com/WICG/scroll-animations/pull/34 . We should change our implementation to match. Requires: 1. Updating the idl for ScrollTimelineOptions 2. Updating the currentTime code.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e27a07a0b7fecb47f4179a9c145022355a94be65 commit e27a07a0b7fecb47f4179a9c145022355a94be65 Author: Stephen McGruer <smcgruer@chromium.org> Date: Mon Dec 03 17:57:32 2018 [ScrollTimeline] Support a null scrollSource Bug: 909711 Change-Id: I7088eac2946a4b71ece3cea2b54d3ac9b400116c Reviewed-on: https://chromium-review.googlesource.com/c/1354060 Reviewed-by: Majid Valipour <majidvp@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#613152} [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/renderer/core/animation/scroll_timeline.cc [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/renderer/core/animation/scroll_timeline.h [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/renderer/core/animation/scroll_timeline_options.idl [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/renderer/core/animation/scroll_timeline_test.cc [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/renderer/modules/animationworklet/worklet_animation.cc [add] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/web_tests/fast/animation/scroll-animations/scrolltimeline-creation-no-document.html [modify] https://crrev.com/e27a07a0b7fecb47f4179a9c145022355a94be65/third_party/blink/web_tests/fast/animation/scroll-animations/scrolltimeline-creation.html
Comment 1 by smcgruer@chromium.org
, Nov 28