From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../web-platform/tests/scroll-animations/META.yml | 4 + .../css/animation-duration-auto.tentative.html | 56 ++ .../scroll-animations/css/animation-shorthand.html | 43 ++ .../css/animation-timeline-computed.html | 76 ++ .../css/animation-timeline-ignored.tentative.html | 145 ++++ .../css/animation-timeline-in-keyframe.html | 27 + .../css/animation-timeline-multiple.html | 90 +++ ...e-named-scroll-progress-timeline.tentative.html | 662 ++++++++++++++++++ .../css/animation-timeline-none.html | 41 ++ .../css/animation-timeline-parsing.html | 88 +++ ...eline-scroll-functional-notation.tentative.html | 148 ++++ ...imeline-view-functional-notation.tentative.html | 263 +++++++ .../css/get-animations-inactive-timeline.html | 87 +++ ...keyframes-with-document-timeline.tentative.html | 54 ++ ...imeline-none-with-progress-print.tentative.html | 56 ++ .../animation-timeline-none-with-progress-ref.html | 38 + .../scroll-timeline-default-iframe-print.html | 65 ++ .../scroll-timeline-default-print.tentative.html | 62 ++ .../scroll-timeline-specified-scroller-print.html | 58 ++ .../scroll-timeline-specified-scroller-ref.html | 38 + ...on-animation-longhand-properties.tentative.html | 255 +++++++ .../css/progress-based-animation-timeline.html | 52 ++ .../scroll-timeline-axis-computed.tentative.html | 35 + .../scroll-timeline-axis-parsing.tentative.html | 27 + .../css/scroll-timeline-axis-writing-mode.html | 126 ++++ .../css/scroll-timeline-default-iframe-ref.html | 33 + .../css/scroll-timeline-default-iframe.html | 73 ++ .../css/scroll-timeline-default-quirks-mode.html | 63 ++ .../css/scroll-timeline-default-ref.html | 31 + ...croll-timeline-default-writing-mode-rl-ref.html | 32 + .../scroll-timeline-default-writing-mode-rl.html | 65 ++ .../css/scroll-timeline-default.html | 63 ++ .../scroll-timeline-document-scroller-quirks.html | 36 + .../css/scroll-timeline-dynamic.tentative.html | 267 +++++++ .../scroll-timeline-frame-size-changed-ref.html | 31 + .../css/scroll-timeline-frame-size-changed.html | 67 ++ .../css/scroll-timeline-in-container-query.html | 74 ++ .../css/scroll-timeline-inactive.html | 51 ++ .../scroll-timeline-inline-orientation-ref.html | 32 + .../css/scroll-timeline-inline-orientation.html | 68 ++ .../css/scroll-timeline-multi-pass.tentative.html | 109 +++ .../scroll-timeline-name-computed.tentative.html | 34 + .../scroll-timeline-name-parsing.tentative.html | 30 + .../css/scroll-timeline-name-tree-scoped.html | 144 ++++ .../css/scroll-timeline-nearest-dirty.html | 42 ++ .../css/scroll-timeline-paused-animations.html | 95 +++ ...roll-timeline-responsiveness-from-endpoint.html | 62 ++ .../css/scroll-timeline-root-dirty.html | 35 + .../css/scroll-timeline-sampling.html | 46 ++ .../css/scroll-timeline-shorthand.tentative.html | 41 ++ .../css/scroll-timeline-sibling-gcs.html | 52 ++ .../scroll-animations/css/support/testcommon.js | 19 + ...e-range-name-offset-in-keyframes.tentative.html | 94 +++ .../css/view-timeline-animation.html | 219 ++++++ .../css/view-timeline-axis-computed.html | 37 + .../css/view-timeline-axis-parsing.html | 29 + .../css/view-timeline-delay-animation.html | 144 ++++ .../css/view-timeline-dynamic.html | 183 +++++ .../css/view-timeline-inset-animation.html | 768 +++++++++++++++++++++ .../css/view-timeline-inset-computed.html | 41 ++ .../css/view-timeline-inset-parsing.html | 34 + .../css/view-timeline-lookup.html | 301 ++++++++ .../css/view-timeline-name-computed.html | 36 + .../css/view-timeline-name-parsing.html | 30 + .../css/view-timeline-name-tree-scoped.html | 145 ++++ .../css/view-timeline-shorthand.tentative.html | 104 +++ .../css/view-timeline-used-values.html | 104 +++ .../scroll-timelines/animation-ref.html | 45 ++ .../animation-with-animatable-interface.html | 66 ++ .../animation-with-delay-crash.html | 31 + .../animation-with-display-none.html | 75 ++ .../animation-with-offsets-crash.html | 32 + .../animation-with-overflow-hidden-ref.html | 45 ++ .../animation-with-overflow-hidden.html | 64 ++ .../animation-with-root-scroller-ref.html | 37 + .../animation-with-root-scroller.html | 60 ++ .../scroll-timelines/animation-with-transform.html | 68 ++ .../scroll-timelines/cancel-animation.html | 214 ++++++ .../scroll-timelines/constructor-no-document.html | 19 + .../scroll-timelines/constructor.html | 95 +++ .../scroll-timelines/current-time-nan.html | 80 +++ .../current-time-root-scroller.html | 49 ++ .../current-time-writing-modes.html | 148 ++++ .../scroll-timelines/effect-updateTiming.html | 602 ++++++++++++++++ .../scroll-timelines/finish-animation.html | 449 ++++++++++++ .../scroll-timelines/idlharness.window.js | 16 + ...ayout-changes-on-percentage-based-timeline.html | 84 +++ .../scroll-timelines/null-scroll-source-crash.html | 24 + .../scroll-timelines/pause-animation.html | 210 ++++++ .../scroll-timelines/play-animation.html | 233 +++++++ .../progress-based-effect-delay-ref.html | 45 ++ .../progress-based-effect-delay.tentative.html | 69 ++ .../scroll-timelines/reverse-animation.html | 240 +++++++ ...roll-animation-effect-fill-modes.tentative.html | 137 ++++ .../scroll-animation-effect-phases.tentative.html | 480 +++++++++++++ .../scroll-animation-inactive-timeline.html | 170 +++++ .../scroll-timelines/scroll-animation.html | 216 ++++++ .../scroll-timeline-in-removed-iframe-crash.html | 20 + .../scroll-timeline-invalidation.html | 128 ++++ .../scroll-timeline-snapshotting.html | 44 ++ .../set-current-time-before-play.html | 69 ++ .../scroll-timelines/setting-current-time.html | 286 ++++++++ .../scroll-timelines/setting-playback-rate.html | 323 +++++++++ .../scroll-timelines/setting-start-time.html | 439 ++++++++++++ .../setting-timeline.tentative.html | 392 +++++++++++ .../scroll-timelines/source-quirks-mode.html | 36 + .../scroll-timelines/testcommon.js | 124 ++++ ...-attach-to-same-scroll-timeline-cancel-one.html | 84 +++ ...-animations-attach-to-same-scroll-timeline.html | 79 +++ .../scroll-timelines/update-playback-rate.html | 181 +++++ .../updating-the-finished-state.html | 565 +++++++++++++++ ...imeline-current-time-vertical-rl.tentative.html | 97 +++ ...block-view-timeline-current-time.tentative.html | 205 ++++++ ...ock-view-timeline-nested-subject.tentative.html | 113 +++ ...nline-view-timeline-current-time.tentative.html | 289 ++++++++ .../scroll-animations/view-timelines/testcommon.js | 137 ++++ .../view-timeline-delay-large-subject.html | 93 +++ .../view-timelines/view-timeline-delay.html | 103 +++ .../view-timeline-get-current-time-range-name.html | 145 ++++ .../view-timelines/view-timeline-inset.html | 226 ++++++ .../view-timelines/view-timeline-snapport.html | 58 ++ .../view-timeline-source.tentative.html | 94 +++ .../view-timeline-subject-size-changes.html | 79 +++ 123 files changed, 15072 insertions(+) create mode 100644 testing/web-platform/tests/scroll-animations/META.yml create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-shorthand.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/css/named-range-keyframes-with-document-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-print.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-print.html create mode 100644 testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-quirks-mode.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-default.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-document-scroller-quirks.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-in-container-query.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-inactive.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-tree-scoped.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-dirty.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-responsiveness-from-endpoint.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-root-dirty.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-sibling-gcs.html create mode 100644 testing/web-platform/tests/scroll-animations/css/support/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-delay-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-inset-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-inset-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-name-tree-scoped.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-used-values.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-animatable-interface.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-delay-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-display-none.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-offsets-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-transform.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/cancel-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/constructor-no-document.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/constructor.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-fill-modes.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-inactive-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-in-removed-iframe-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-snapshotting.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-current-time.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/source-quirks-mode.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay-large-subject.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-inset.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-snapport.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-source.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html (limited to 'testing/web-platform/tests/scroll-animations') diff --git a/testing/web-platform/tests/scroll-animations/META.yml b/testing/web-platform/tests/scroll-animations/META.yml new file mode 100644 index 0000000000..c7f0e4903b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/META.yml @@ -0,0 +1,4 @@ +spec: https://drafts.csswg.org/scroll-animations/ +suggested_reviewers: + - birtles + - graouts diff --git a/testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html new file mode 100644 index 0000000000..f44a682890 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html @@ -0,0 +1,56 @@ + +animation-duration: auto + + + + + + + + +
+
+
+
+
+
+ + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html b/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html new file mode 100644 index 0000000000..60d6c76646 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html @@ -0,0 +1,43 @@ + + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html new file mode 100644 index 0000000000..9cabaab1fe --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html @@ -0,0 +1,76 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html new file mode 100644 index 0000000000..32cb89c4ef --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html @@ -0,0 +1,145 @@ + + + + + + +
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html new file mode 100644 index 0000000000..7548333139 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html @@ -0,0 +1,27 @@ + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html new file mode 100644 index 0000000000..8ae37bf751 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html @@ -0,0 +1,90 @@ + +animation-timeline with multiple timelines + + + + + +
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html new file mode 100644 index 0000000000..9f55e2d2c9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html @@ -0,0 +1,662 @@ + +The animation-timeline: scroll-timeline-name + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html new file mode 100644 index 0000000000..a8e07a44d6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html @@ -0,0 +1,41 @@ + + + + + + + +
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html new file mode 100644 index 0000000000..1a30f11f85 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html @@ -0,0 +1,88 @@ + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html new file mode 100644 index 0000000000..e28e85245e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html @@ -0,0 +1,148 @@ + +The animation-timeline: scroll() notation + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html new file mode 100644 index 0000000000..d93306819a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html @@ -0,0 +1,263 @@ + +The animation-timeline: view() notation + + + + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html b/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html new file mode 100644 index 0000000000..10bf00fbbc --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html @@ -0,0 +1,87 @@ + + + +getAnimations for scroll-linked animations + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/named-range-keyframes-with-document-timeline.tentative.html b/testing/web-platform/tests/scroll-animations/css/named-range-keyframes-with-document-timeline.tentative.html new file mode 100644 index 0000000000..a0094d3220 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/named-range-keyframes-with-document-timeline.tentative.html @@ -0,0 +1,54 @@ + + + +Named range keyframe offset when you have a document timeline + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-print.tentative.html b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-print.tentative.html new file mode 100644 index 0000000000..3939a1df48 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-print.tentative.html @@ -0,0 +1,56 @@ + + +The animation-timeline:none with preserved progress for print + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html new file mode 100644 index 0000000000..09bcba2fd4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html @@ -0,0 +1,38 @@ + + +Reference for none animation-timeline + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html new file mode 100644 index 0000000000..d732ca141a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html @@ -0,0 +1,65 @@ + + +The default scroll() timeline in the iframe for print + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print.tentative.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print.tentative.html new file mode 100644 index 0000000000..975a59812e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print.tentative.html @@ -0,0 +1,62 @@ + + +The default scroll() timeline for print + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-print.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-print.html new file mode 100644 index 0000000000..7e5b6607b6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-print.html @@ -0,0 +1,58 @@ + + +A scroll timeline with a specified scroller for print + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-ref.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-ref.html new file mode 100644 index 0000000000..9074f2454b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-specified-scroller-ref.html @@ -0,0 +1,38 @@ + + +Reference for scroll timeline with a specified scroller + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html new file mode 100644 index 0000000000..f4f9a669f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html @@ -0,0 +1,255 @@ + +The various animation longhands with progress based animations + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html new file mode 100644 index 0000000000..2e910cbe51 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html @@ -0,0 +1,52 @@ + +CSS Animation using progress based timeline + + + + + +
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.tentative.html new file mode 100644 index 0000000000..8e23968b8e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.tentative.html @@ -0,0 +1,35 @@ + + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.tentative.html new file mode 100644 index 0000000000..81be07e38f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.tentative.html @@ -0,0 +1,27 @@ + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html new file mode 100644 index 0000000000..90912bfc22 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html @@ -0,0 +1,126 @@ + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe-ref.html new file mode 100644 index 0000000000..1ab5646c8b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe-ref.html @@ -0,0 +1,33 @@ + +Reference for default scroll() timeline + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe.html new file mode 100644 index 0000000000..dbcf5941a8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-iframe.html @@ -0,0 +1,73 @@ + + +The default scroll() timeline in the iframe + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-quirks-mode.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-quirks-mode.html new file mode 100644 index 0000000000..d2c28d86b6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-quirks-mode.html @@ -0,0 +1,63 @@ + +The default scroll() timeline in quirks mode + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-ref.html new file mode 100644 index 0000000000..cb3b60e4bd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-ref.html @@ -0,0 +1,31 @@ + +Reference for default scroll() timeline + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl-ref.html new file mode 100644 index 0000000000..3c072829e6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl-ref.html @@ -0,0 +1,32 @@ + +Reference for default scroll() timeline with vertical-rl + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl.html new file mode 100644 index 0000000000..27e6ec196b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default-writing-mode-rl.html @@ -0,0 +1,65 @@ + + +The default scroll() timeline with writing-mode:vertical-rl + + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default.html new file mode 100644 index 0000000000..07eda33fd0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-default.html @@ -0,0 +1,63 @@ + + +The default scroll() timeline + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-document-scroller-quirks.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-document-scroller-quirks.html new file mode 100644 index 0000000000..809a658a15 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-document-scroller-quirks.html @@ -0,0 +1,36 @@ + +Tests the document scroller in quirks mode + + + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html new file mode 100644 index 0000000000..b0880a7cc5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html @@ -0,0 +1,267 @@ + + + + + + + + +
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed-ref.html new file mode 100644 index 0000000000..ea7628ac72 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed-ref.html @@ -0,0 +1,31 @@ + +Reference for the default scroll() timeline + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed.html new file mode 100644 index 0000000000..fb0eb8aa17 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-frame-size-changed.html @@ -0,0 +1,67 @@ + + +The default scroll() timeline when the frame size changed + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-in-container-query.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-in-container-query.html new file mode 100644 index 0000000000..d6a8ba8e60 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-in-container-query.html @@ -0,0 +1,74 @@ + +scroll-timeline and container queries + + + + + + + +
+
+
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inactive.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inactive.html new file mode 100644 index 0000000000..92165d7046 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inactive.html @@ -0,0 +1,51 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation-ref.html new file mode 100644 index 0000000000..7b87b1db39 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation-ref.html @@ -0,0 +1,32 @@ + +Reference for scroll timeline with inline orientation and root scroller + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation.html new file mode 100644 index 0000000000..52b7427f2d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inline-orientation.html @@ -0,0 +1,68 @@ + + +Scroll timeline with inline orientation and root scroller + + + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html new file mode 100644 index 0000000000..91668ada5b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html @@ -0,0 +1,109 @@ + +ScrollTimelines may trigger multiple style/layout passes + + + + + + + +
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.tentative.html new file mode 100644 index 0000000000..1acb964ef7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.tentative.html @@ -0,0 +1,34 @@ + + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.tentative.html new file mode 100644 index 0000000000..a8f2e31650 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.tentative.html @@ -0,0 +1,30 @@ + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-tree-scoped.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-tree-scoped.html new file mode 100644 index 0000000000..622a582cce --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-tree-scoped.html @@ -0,0 +1,144 @@ + +scroll-timelime-name and tree-scoped references + + + + + + + +
+ + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-dirty.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-dirty.html new file mode 100644 index 0000000000..1a79c9bb22 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-dirty.html @@ -0,0 +1,42 @@ + +Unrelated style mutation does not affect anonymous timeline + + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html new file mode 100644 index 0000000000..54518a5e87 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-paused-animations.html @@ -0,0 +1,95 @@ + + +Scroll timeline with paused animations + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-responsiveness-from-endpoint.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-responsiveness-from-endpoint.html new file mode 100644 index 0000000000..71d3699077 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-responsiveness-from-endpoint.html @@ -0,0 +1,62 @@ + + +Root-scrolling timeline with animation moving from end point + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-root-dirty.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-root-dirty.html new file mode 100644 index 0000000000..1c0b73ab45 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-root-dirty.html @@ -0,0 +1,35 @@ + +Unrelated style mutation does not affect anonymous timeline (root) + + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html new file mode 100644 index 0000000000..1fe354edfd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html @@ -0,0 +1,46 @@ + + + + + + +
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html new file mode 100644 index 0000000000..b340ff34ff --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html @@ -0,0 +1,41 @@ + + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sibling-gcs.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sibling-gcs.html new file mode 100644 index 0000000000..6062e795f4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sibling-gcs.html @@ -0,0 +1,52 @@ + +scroll-timeline and container queries + + + + + + + +
+
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/support/testcommon.js b/testing/web-platform/tests/scroll-animations/css/support/testcommon.js new file mode 100644 index 0000000000..66bc27bb10 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/support/testcommon.js @@ -0,0 +1,19 @@ +'use strict'; + +/** + * Returns a Promise that is resolved after a CSS scroll timeline is created (as + * the result of a style change) and a snapshot has been taken, so that the + * animation style is correctly reflected by getComputedStyle(). + * Technically, this only takes a full frame update. We implement this as two + * requestAnimationFrame callbacks because the result will be available at the + * beginning of the second frame. + */ +async function waitForCSSScrollTimelineStyle() { + await waitForNextFrame(); + await waitForNextFrame(); +} + +function assert_implements_animation_timeline() { + assert_implements(CSS.supports('animation-timeline:foo'), + 'animation-timeline not supported'); +} diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html b/testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html new file mode 100644 index 0000000000..993046c5f2 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html @@ -0,0 +1,94 @@ + + + +Timeline offset in Animation Keyframes + + + + + + + +
+
+
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html new file mode 100644 index 0000000000..b816bb6897 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html @@ -0,0 +1,219 @@ + +Animations using view-timeline + + + + + + +
+ + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html new file mode 100644 index 0000000000..f4649dab04 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html @@ -0,0 +1,37 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html new file mode 100644 index 0000000000..ffcc36c320 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html @@ -0,0 +1,29 @@ + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-delay-animation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-delay-animation.html new file mode 100644 index 0000000000..dfb0e59f5d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-delay-animation.html @@ -0,0 +1,144 @@ + +Animations using named timeline ranges + + + + + + +
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html new file mode 100644 index 0000000000..74da8850d4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html @@ -0,0 +1,183 @@ + +Changes to view-timeline are reflected in dependent elements + + + + + + +
+ + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html new file mode 100644 index 0000000000..a95086b62b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html @@ -0,0 +1,768 @@ + +Animations using view-timeline-inset + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-computed.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-computed.html new file mode 100644 index 0000000000..77683a4678 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-computed.html @@ -0,0 +1,41 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-parsing.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-parsing.html new file mode 100644 index 0000000000..d502b13593 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-parsing.html @@ -0,0 +1,34 @@ + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html new file mode 100644 index 0000000000..c1797c7ba1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html @@ -0,0 +1,301 @@ + +Named view-timeline lookup + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html new file mode 100644 index 0000000000..5657dc7817 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html @@ -0,0 +1,36 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html new file mode 100644 index 0000000000..3878d5c583 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html @@ -0,0 +1,30 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-tree-scoped.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-tree-scoped.html new file mode 100644 index 0000000000..c216c345ed --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-tree-scoped.html @@ -0,0 +1,145 @@ + +view-timelime-name and tree-scoped references + + + + + + + +
+ + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html new file mode 100644 index 0000000000..f3efa88c92 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html @@ -0,0 +1,104 @@ + + + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-used-values.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-used-values.html new file mode 100644 index 0000000000..6627eeb998 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-used-values.html @@ -0,0 +1,104 @@ + +Used values of view-timeline properties + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-ref.html new file mode 100644 index 0000000000..9158715321 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-ref.html @@ -0,0 +1,45 @@ + +Reference for Web Animation with scroll timeline tests + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-animatable-interface.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-animatable-interface.html new file mode 100644 index 0000000000..b04aaf2d33 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-animatable-interface.html @@ -0,0 +1,66 @@ + +Scroll-linked animation with Animatable interface + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-delay-crash.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-delay-crash.html new file mode 100644 index 0000000000..9d821f9e20 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-delay-crash.html @@ -0,0 +1,31 @@ + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-display-none.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-display-none.html new file mode 100644 index 0000000000..a62916833c --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-display-none.html @@ -0,0 +1,75 @@ + +Scroll timeline with Web Animation and transition from display:none to display:block + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-offsets-crash.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-offsets-crash.html new file mode 100644 index 0000000000..d4d1a55214 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-offsets-crash.html @@ -0,0 +1,32 @@ + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden-ref.html new file mode 100644 index 0000000000..c045f1a1c9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden-ref.html @@ -0,0 +1,45 @@ + +Scroll timeline with Web Animation using a scroller with overflow hidden + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden.html new file mode 100644 index 0000000000..bc7611d05a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-overflow-hidden.html @@ -0,0 +1,64 @@ + +Scroll timeline with Web Animation using a scroller with overflow hidden + + + + + + + + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller-ref.html new file mode 100644 index 0000000000..58435be631 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller-ref.html @@ -0,0 +1,37 @@ + +Reference for Scroll timeline with Web Animation using the root scroller + + +
+

Covered Contents

+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller.html new file mode 100644 index 0000000000..6ba1a22445 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-root-scroller.html @@ -0,0 +1,60 @@ + +Scroll timeline with Web Animation using the root scroller + + + + + + + + + +
+

Covered Contents

+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-transform.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-transform.html new file mode 100644 index 0000000000..f741cc634d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/animation-with-transform.html @@ -0,0 +1,68 @@ + +Basic use of scroll timeline with Web Animation + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/cancel-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/cancel-animation.html new file mode 100644 index 0000000000..7daf76a7a5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/cancel-animation.html @@ -0,0 +1,214 @@ + + +Canceling an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor-no-document.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor-no-document.html new file mode 100644 index 0000000000..d2cc590bc7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor-no-document.html @@ -0,0 +1,19 @@ + + +ScrollTimeline constructor - no document + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor.html new file mode 100644 index 0000000000..8e211efa11 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor.html @@ -0,0 +1,95 @@ + + +ScrollTimeline constructor + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html new file mode 100644 index 0000000000..440b1f413e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html @@ -0,0 +1,80 @@ + + +ScrollTimeline current time algorithm - NaN cases + + + + + + +
+
+
+ + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html new file mode 100644 index 0000000000..be1d62bec5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html @@ -0,0 +1,49 @@ + + +ScrollTimeline current time algorithm - root scroller + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html new file mode 100644 index 0000000000..d18abcd48f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html @@ -0,0 +1,148 @@ + + +ScrollTimeline current time algorithm - interaction with writing modes + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html new file mode 100644 index 0000000000..78ec8e1de5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html @@ -0,0 +1,602 @@ + + +Scroll based animation: AnimationEffect.updateTiming + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html new file mode 100644 index 0000000000..fd768651b4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html @@ -0,0 +1,449 @@ + + +Finishing an animation + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js b/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js new file mode 100644 index 0000000000..90157580ce --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +idl_test( + ['scroll-animations'], + // The css-pseudo dependency shouldn't be necessary, but is: + // https://github.com/web-platform-tests/wpt/issues/12574 + ['web-animations', 'css-pseudo', 'dom'], + idl_array => { + idl_array.add_objects({ + ScrollTimeline: ['new ScrollTimeline()'], + }); + } +); diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html new file mode 100644 index 0000000000..c5a46a501e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html @@ -0,0 +1,84 @@ + +Layout changes on percentage-based scroll timeline + + + + + + + + + +
+
Scrolling Test
+
+
+ +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html new file mode 100644 index 0000000000..53ad0d9285 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html @@ -0,0 +1,24 @@ + + + + + +
+ \ No newline at end of file diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html new file mode 100644 index 0000000000..9b263f843d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html @@ -0,0 +1,210 @@ + + +Pausing an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html new file mode 100644 index 0000000000..d408547f55 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html @@ -0,0 +1,233 @@ + + +Playing an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html new file mode 100644 index 0000000000..59366a88dd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html @@ -0,0 +1,45 @@ + +Reference for Web Animation with scroll timeline and effect delay tests + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html new file mode 100644 index 0000000000..525d8448ff --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html @@ -0,0 +1,69 @@ + +Animation effect delays should be accounted for when using a progress based timeline + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html new file mode 100644 index 0000000000..cf6173b60a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html @@ -0,0 +1,240 @@ + + +Reversing an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-fill-modes.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-fill-modes.tentative.html new file mode 100644 index 0000000000..b9cc154676 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-fill-modes.tentative.html @@ -0,0 +1,137 @@ + + +Verify applied effect output for all fill modes in all timeline states: before start, at start, in range, at end, after end while using various effect delay values + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html new file mode 100644 index 0000000000..5ded56bbf7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html @@ -0,0 +1,480 @@ + + +Verify timeline time, animation time, effect time, and effect progress for all timeline states: before start, at start, in range, at end, after end while using various effect delay values + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-inactive-timeline.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-inactive-timeline.html new file mode 100644 index 0000000000..236452eead --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-inactive-timeline.html @@ -0,0 +1,170 @@ + + +Test basic functionality of scroll linked animation. + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html new file mode 100644 index 0000000000..bc7ab4a476 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html @@ -0,0 +1,216 @@ + + +Test basic functionality of scroll linked animation. + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-in-removed-iframe-crash.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-in-removed-iframe-crash.html new file mode 100644 index 0000000000..07edbd83f1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-in-removed-iframe-crash.html @@ -0,0 +1,20 @@ + + + + + + Starting an animation with a scroll timeline in a removed iframe + should not crash + + +
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html new file mode 100644 index 0000000000..f35d878c69 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html @@ -0,0 +1,128 @@ + + +ScrollTimeline invalidation + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-snapshotting.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-snapshotting.html new file mode 100644 index 0000000000..1e43699d5b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-snapshotting.html @@ -0,0 +1,44 @@ + + +ScrollTimeline snapshotting + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html new file mode 100644 index 0000000000..cd3faeeee4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html @@ -0,0 +1,69 @@ + +Setting current time before play should not timeout + + + + + + + + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-current-time.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-current-time.html new file mode 100644 index 0000000000..f6c826db69 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-current-time.html @@ -0,0 +1,286 @@ + + +Setting the current time of an animation + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html new file mode 100644 index 0000000000..4d6fecae05 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html @@ -0,0 +1,323 @@ + + +Setting the playback rate of an animation that is using a ScrollTimeline + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html new file mode 100644 index 0000000000..d506df65bf --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html @@ -0,0 +1,439 @@ + + +Setting the start time of scroll animation + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html new file mode 100644 index 0000000000..69b40cb6c4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html @@ -0,0 +1,392 @@ + + +Setting the timeline of scroll animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/source-quirks-mode.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/source-quirks-mode.html new file mode 100644 index 0000000000..17e95a0519 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/source-quirks-mode.html @@ -0,0 +1,36 @@ + + + + ScrollTimeline default source in quirks mode + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/testcommon.js b/testing/web-platform/tests/scroll-animations/scroll-timelines/testcommon.js new file mode 100644 index 0000000000..97e81f494c --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/testcommon.js @@ -0,0 +1,124 @@ +'use strict'; + +// Builds a generic structure that looks like: +// +//
// 100x100 viewport +//
// 500x500 +//
+// +// The |scrollerOverrides| and |contentOverrides| parameters are maps which +// are applied to the scroller and contents style after basic setup. +// +// Appends the outer 'scroller' element to the document body, and returns it. +function setupScrollTimelineTest( + scrollerOverrides = new Map(), contentOverrides = new Map()) { + let scroller = document.createElement('div'); + scroller.style.width = '100px'; + scroller.style.height = '100px'; + // Hide the scrollbars, but maintain the ability to scroll. This setting + // ensures that variability in scrollbar sizing does not contribute to test + // failures or flakes. + scroller.style.overflow = 'hidden'; + for (const [key, value] of scrollerOverrides) { + scroller.style[key] = value; + } + + let contents = document.createElement('div'); + contents.style.width = '500px'; + contents.style.height = '500px'; + for (const [key, value] of contentOverrides) { + contents.style[key] = value; + } + + scroller.appendChild(contents); + document.body.appendChild(scroller); + return scroller; +} + +// Helper method to calculate the current time, implementing only step 5 of +// https://wicg.github.io/scroll-animations/#current-time-algorithm +function calculateCurrentTime( + currentScrollOffset, startScrollOffset, endScrollOffset) { + return ((currentScrollOffset - startScrollOffset) / + (endScrollOffset - startScrollOffset)) * + 100; +} + +function createScroller(test) { + var scroller = createDiv(test); + scroller.innerHTML = "
"; + scroller.classList.add('scroller'); + // Trigger layout run. + scroller.scrollTop; + return scroller; +} + +function createScrollerWithStartAndEnd(test, orientationClass = 'vertical') { + var scroller = createDiv(test); + scroller.innerHTML = + `
+
+
+
`; + scroller.classList.add('scroller'); + scroller.classList.add(orientationClass); + + return scroller; +} + +function createScrollTimeline(test, options) { + options = options || { + source: createScroller(test) + } + return new ScrollTimeline(options); +} + +function createScrollLinkedAnimation(test, timeline) { + return createScrollLinkedAnimationWithTiming(test, /* duration in ms*/ 1000, timeline); +} + +function createScrollLinkedAnimationWithTiming(test, timing, timeline) { + if (timeline === undefined) + timeline = createScrollTimeline(test); + const KEYFRAMES = { opacity: [0, 1] }; + return new Animation( + new KeyframeEffect(createDiv(test), KEYFRAMES, timing), timeline); +} + +function assert_approx_equals_or_null(actual, expected, tolerance, name) { + if (actual === null || expected === null){ + assert_equals(actual, expected, name); + } + else { + assert_approx_equals(actual, expected, tolerance, name); + } +} + +function assert_percents_approx_equal(actual, expected, maxScroll, + description) { + // Base the tolerance on being out by up to half a pixel. + const tolerance = 0.5 / maxScroll * 100; + assert_equals(actual.unit, "percent", `'actual' unit type must be ` + + `'percent' for "${description}"`); + assert_true(actual instanceof CSSUnitValue, `'actual' must be of type ` + + `CSSNumberish for "${description}"`); + if (expected instanceof CSSUnitValue){ + // Verify that when the expected in a CSSUnitValue, it is the correct unit + // type + assert_equals(expected.unit, "percent", `'expected' unit type must be ` + + `'percent' for "${description}"`); + assert_approx_equals(actual.value, expected.value, tolerance, + `values do not match for "${description}"`); + } else if (typeof expected, "number"){ + assert_approx_equals(actual.value, expected, tolerance, + `values do not match for "${description}"`); + } +} + +function assert_percents_equal(actual, expected, description) { + // Rough estimate of the default size of the scrollable area based on + // sizes in setupScrollTimelineTest. + const defaultScrollRange = 400; + return assert_percents_approx_equal(actual, expected, defaultScrollRange, + description); +} diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html new file mode 100644 index 0000000000..ed8e8337a6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html @@ -0,0 +1,84 @@ + +Scroll timeline shared by two animation, one gets cancelled + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html new file mode 100644 index 0000000000..de50599fba --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html @@ -0,0 +1,79 @@ + +Scroll timeline shared by two animation + + + + + + + + + +
+
+
+

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html new file mode 100644 index 0000000000..1db31602f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html @@ -0,0 +1,181 @@ + + +Seamlessly updating the playback rate of an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html new file mode 100644 index 0000000000..86b52d5aa0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html @@ -0,0 +1,565 @@ + + +Updating the finished state + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html new file mode 100644 index 0000000000..5bc4598452 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html @@ -0,0 +1,97 @@ + + + +View timeline current-time with vertical-rl writing mode + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html new file mode 100644 index 0000000000..a6530f6631 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html @@ -0,0 +1,205 @@ + + + +View timeline current-time + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html new file mode 100644 index 0000000000..2cc8af882f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html @@ -0,0 +1,113 @@ + + + +View timeline nested subject + + + + + + + + +
+
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html new file mode 100644 index 0000000000..412145b04c --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html @@ -0,0 +1,289 @@ + + + +View timeline current-time + + + + + + + + +
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js b/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js new file mode 100644 index 0000000000..969f282e67 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js @@ -0,0 +1,137 @@ +'use strict'; + +function assert_px_equals(observed, expected, description) { + assert_equals(observed.unit, 'px', + `Unexpected unit type for '${description}'`); + assert_approx_equals(observed.value, expected, 0.0001, + `Unexpected value for ${description}`); +} + +function CreateViewTimelineOpacityAnimation(test, target, options) { + const viewTimelineOptions = { + subject: target, + axis: 'block' + }; + if (options) { + for (let key in options) { + viewTimelineOptions[key] = options[key]; + } + } + + const anim = + target.animate( + { opacity: [0.3, 0.7] }, + { timeline: new ViewTimeline(viewTimelineOptions) }); + test.add_cleanup(() => { + anim.cancel(); + }); + return anim; +} + +// Verify that range specified in the options aligns with the active range of +// the animation. +// +// Sample call: +// await runTimelineRangeTest(t, { +// timeline: { inset: [ CSS.percent(0), CSS.percent(20)] }, +// timing: { fill: 'both' } +// rangeStart: 600, +// rangeEnd: 900 +// }); +async function runTimelineRangeTest(t, options, message) { + container.scrollLeft = 0; + await waitForNextFrame(); + + const anim = + options.anim || + CreateViewTimelineOpacityAnimation(t, target, options.timeline); + if (options.timing) + anim.effect.updateTiming(options.timing); + + const timeline = anim.timeline; + await anim.ready; + + // Advance to the start offset, which triggers entry to the active phase. + container.scrollLeft = options.rangeStart; + await waitForNextFrame(); + assert_equals(getComputedStyle(target).opacity, '0.3', + `Effect at the start of the active phase: ${message}`); + + // Advance to the midpoint of the animation. + container.scrollLeft = (options.rangeStart + options.rangeEnd) / 2; + await waitForNextFrame(); + assert_equals(getComputedStyle(target).opacity,'0.5', + `Effect at the midpoint of the active range: ${message}`); + + // Advance to the end of the animation. + container.scrollLeft = options.rangeEnd; + await waitForNextFrame(); + assert_equals(getComputedStyle(target).opacity, '0.7', + `Effect is in the active phase at effect end time: ${message}`); + + // Return the animation so that we can continue testing with the same object. + return anim; +} + +// Sets the start and end delays for a view timeline and ensures that the +// range aligns with expected values. +// +// Sample call: +// await runTimelineDelayTest(t, { +// delay: { phase: 'cover', percent: CSS.percent(0) } , +// endDelay: { phase: 'cover', percent: CSS.percent(100) }, +// rangeStart: 600, +// rangeEnd: 900 +// }); +async function runTimelineDelayTest(t, options) { + const delayToString = delay => { + const parts = []; + if (delay.phase) + parts.push(delay.phase); + if (delay.percent) + parts.push(`${delay.percent.value}%`); + return parts.join(' '); + }; + const range = + `${delayToString(options.delay)} to ` + + `${delayToString(options.endDelay)}`; + + options.timeline = { + axis: 'inline' + }; + options.timing = { + delay: options.delay, + endDelay: options.endDelay, + // Set fill to accommodate floating point precision errors at the + // endpoints. + fill: 'both' + }; + + return runTimelineRangeTest(t, options, range); +} + +// Sets the Inset for a view timeline and ensures that the range aligns with +// expected values. +// +// Sample call: +// await runTimelineDelayTest(t, { +// inset: [ CSS.px(20), CSS.px(40) ] +// rangeStart: 600, +// rangeEnd: 900 +// }); +async function runTimelineInsetTest(t, options) { + options.timeline = { + axis: 'inline', + inset: options.inset + }; + options.timing = { + // Set fill to accommodate floating point precision errors at the + // endpoints. + fill: 'both' + } + const length = options.inset.length; + const range = + (options.inset instanceof Array) ? options.inset.join(' ') + : options.inset; + return runTimelineRangeTest(t, options, range); +} diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay-large-subject.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay-large-subject.html new file mode 100644 index 0000000000..edb37c1379 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay-large-subject.html @@ -0,0 +1,93 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay.html new file mode 100644 index 0000000000..1377dc339c --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-delay.html @@ -0,0 +1,103 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html new file mode 100644 index 0000000000..8f385e7b6e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html @@ -0,0 +1,145 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-inset.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-inset.html new file mode 100644 index 0000000000..72480ea9f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-inset.html @@ -0,0 +1,226 @@ + + + +View timeline delay + + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-snapport.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-snapport.html new file mode 100644 index 0000000000..5d68d37037 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-snapport.html @@ -0,0 +1,58 @@ + +ViewTimeline vs. scroll-padding-* + + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-source.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-source.tentative.html new file mode 100644 index 0000000000..f8aabc8bdd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-source.tentative.html @@ -0,0 +1,94 @@ + + + +View timeline source + + + + + + +
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html new file mode 100644 index 0000000000..b438317f7c --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html @@ -0,0 +1,79 @@ + + + +View timeline Subject size changes after creation of Animation + + + + + + + + +
+
+
+
+
+ + + -- cgit v1.2.3