From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../web-platform/tests/scroll-animations/META.yml | 4 + .../crashtests/invalid-animation-range.html | 13 + .../css/animation-duration-auto.tentative.html | 58 ++ .../scroll-animations/css/animation-events.html | 87 +++ .../css/animation-fill-outside-range-ref.html | 97 +++ .../css/animation-fill-outside-range-test.html | 137 ++++ .../css/animation-inactive-outside-range-ref.html | 100 +++ .../css/animation-inactive-outside-range-test.html | 124 ++++ .../css/animation-range-ignored.html | 235 +++++++ .../css/animation-range-normal-matches-cover.html | 92 +++ .../css/animation-range-visual-test-ref.html | 79 +++ .../css/animation-range-visual-test.html | 62 ++ .../scroll-animations/css/animation-shorthand.html | 166 +++++ .../css/animation-timeline-computed.html | 73 ++ .../css/animation-timeline-deferred.html | 109 +++ .../css/animation-timeline-ignored.tentative.html | 153 +++++ .../css/animation-timeline-in-keyframe.html | 27 + .../css/animation-timeline-multiple.html | 91 +++ ...e-named-scroll-progress-timeline.tentative.html | 444 ++++++++++++ .../css/animation-timeline-none.html | 41 ++ .../css/animation-timeline-parsing.html | 88 +++ ...eline-scroll-functional-notation.tentative.html | 177 +++++ ...imeline-view-functional-notation.tentative.html | 511 ++++++++++++++ .../css/animation-update-ref.html | 55 ++ .../css/deferred-timeline-composited-ref.html | 10 + .../css/deferred-timeline-composited.html | 78 +++ .../css/get-animations-inactive-timeline.html | 84 +++ .../css/merge-timeline-offset-keyframes.html | 135 ++++ ...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-ref.html | 21 + .../scroll-timeline-default-print.tentative.html | 59 ++ .../scroll-timeline-specified-scroller-print.html | 58 ++ .../scroll-timeline-specified-scroller-ref.html | 38 ++ ...on-animation-longhand-properties.tentative.html | 277 ++++++++ .../css/progress-based-animation-timeline.html | 56 ++ .../scroll-animations/css/pseudo-on-scroller.html | 55 ++ .../css/scroll-animation-initial-offset-ref.html | 44 ++ .../css/scroll-animation-initial-offset.html | 73 ++ .../css/scroll-timeline-axis-computed.html | 37 + .../css/scroll-timeline-axis-parsing.html | 31 + .../css/scroll-timeline-axis-writing-mode.html | 143 ++++ .../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 | 75 +++ .../css/scroll-timeline-inactive.html | 90 +++ .../scroll-timeline-inline-orientation-ref.html | 32 + .../css/scroll-timeline-inline-orientation.html | 68 ++ .../css/scroll-timeline-multi-pass.tentative.html | 110 +++ .../css/scroll-timeline-name-computed.html | 37 + .../css/scroll-timeline-name-parsing.html | 32 + .../css/scroll-timeline-name-shadow.html | 180 +++++ .../css/scroll-timeline-nearest-dirty.html | 42 ++ ...e-nearest-with-absolute-positioned-element.html | 79 +++ .../css/scroll-timeline-paused-animations.html | 95 +++ .../css/scroll-timeline-range-animation.html | 182 +++++ ...roll-timeline-responsiveness-from-endpoint.html | 62 ++ .../css/scroll-timeline-root-dirty.html | 35 + .../css/scroll-timeline-sampling.html | 52 ++ .../css/scroll-timeline-shorthand.html | 109 +++ .../scroll-timeline-update-reversed-animation.html | 69 ++ ...roll-timeline-with-percent-delay.tentative.html | 91 +++ .../css/support/animation-range.css | 82 +++ .../scroll-animations/css/support/testcommon.js | 19 + ...fset-in-keyframe-change-timeline.tentative.html | 147 ++++ .../timeline-offset-keyframes-hidden-subject.html | 126 ++++ ...ne-offset-keyframes-with-document-timeline.html | 80 +++ ...e-range-name-offset-in-keyframes.tentative.html | 111 +++ .../css/timeline-scope-computed.tentative.html | 35 + .../css/timeline-scope-parsing.tentative.html | 29 + .../scroll-animations/css/timeline-scope.html | 322 +++++++++ ...-timeline-animation-range-update.tentative.html | 78 +++ .../css/view-timeline-animation.html | 223 +++++++ .../css/view-timeline-axis-computed.html | 37 + .../css/view-timeline-axis-parsing.html | 29 + .../css/view-timeline-dynamic.html | 200 ++++++ .../css/view-timeline-inset-animation.html | 743 +++++++++++++++++++++ .../css/view-timeline-inset-computed.html | 41 ++ .../css/view-timeline-inset-parsing.html | 34 + ...w-timeline-keyframe-boundary-interpolation.html | 121 ++++ .../css/view-timeline-lookup.html | 253 +++++++ .../css/view-timeline-name-computed.html | 36 + .../css/view-timeline-name-parsing.html | 30 + .../css/view-timeline-name-shadow.html | 181 +++++ .../css/view-timeline-range-animation.html | 232 +++++++ ...w-timeline-range-update-reversed-animation.html | 69 ++ .../css/view-timeline-range-update.html | 66 ++ .../css/view-timeline-shorthand.html | 164 +++++ .../css/view-timeline-subject-bounds-update.html | 71 ++ .../css/view-timeline-used-values.html | 104 +++ ...ew-timeline-with-delay-and-range.tentative.html | 93 +++ .../view-timeline-with-transform-on-subject.html | 76 +++ .../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/custom-property-ref.html | 34 + .../scroll-timelines/custom-property.html | 46 ++ .../scroll-timelines/effect-updateTiming.html | 630 +++++++++++++++++ .../scroll-timelines/finish-animation.html | 393 +++++++++++ .../scroll-timelines/idlharness.window.js | 16 + .../intrinsic-iteration-duration.tentative.html | 78 +++ ...ayout-changes-on-percentage-based-timeline.html | 84 +++ .../scroll-timelines/null-scroll-source-crash.html | 24 + .../scroll-timelines/pause-animation.html | 178 +++++ .../scroll-timelines/play-animation.html | 276 ++++++++ .../progress-based-effect-delay-ref.html | 45 ++ .../progress-based-effect-delay.tentative.html | 69 ++ .../scroll-timelines/reverse-animation.html | 164 +++++ ...roll-animation-effect-fill-modes.tentative.html | 137 ++++ .../scroll-animation-effect-phases.tentative.html | 555 +++++++++++++++ .../scroll-animation-inactive-timeline.html | 170 +++++ .../scroll-timelines/scroll-animation.html | 160 +++++ .../scroll-timeline-in-removed-iframe-crash.html | 20 + .../scroll-timeline-invalidation.html | 133 ++++ .../scroll-timelines/scroll-timeline-range.html | 185 +++++ .../scroll-timeline-snapshotting.html | 44 ++ .../set-current-time-before-play.html | 75 +++ .../scroll-timelines/setting-current-time.html | 286 ++++++++ .../scroll-timelines/setting-playback-rate.html | 298 +++++++++ .../scroll-timelines/setting-start-time.html | 401 +++++++++++ .../setting-timeline.tentative.html | 429 ++++++++++++ .../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 | 178 +++++ .../updating-the-finished-state.html | 565 ++++++++++++++++ .../view-timelines/animation-events.html | 83 +++ ...imeline-current-time-vertical-rl.tentative.html | 101 +++ ...block-view-timeline-current-time.tentative.html | 207 ++++++ ...ock-view-timeline-nested-subject.tentative.html | 113 ++++ .../change-animation-range-updates-play-state.html | 88 +++ .../view-timelines/contain-alignment.html | 112 ++++ .../view-timelines/fieldset-source.html | 111 +++ .../get-keyframes-with-timeline-offset.html | 203 ++++++ .../view-timelines/inline-subject.html | 50 ++ ...nline-view-timeline-current-time.tentative.html | 302 +++++++++ .../view-timelines/range-boundary-ref.html | 63 ++ .../view-timelines/range-boundary.html | 153 +++++ .../sticky/view-timeline-sticky-offscreen-1.html | 120 ++++ .../sticky/view-timeline-sticky-offscreen-2.html | 121 ++++ .../sticky/view-timeline-sticky-offscreen-3.html | 121 ++++ .../sticky/view-timeline-sticky-offscreen-4.html | 120 ++++ .../sticky/view-timeline-sticky-offscreen-5.html | 121 ++++ .../sticky/view-timeline-sticky-offscreen-6.html | 127 ++++ .../sticky/view-timeline-sticky-offscreen-7.html | 128 ++++ .../view-timelines/subject-br-crash.html | 14 + .../view-timelines/svg-graphics-element-001.html | 45 ++ .../view-timelines/svg-graphics-element-002.html | 47 ++ .../view-timelines/svg-graphics-element-003.html | 48 ++ .../scroll-animations/view-timelines/testcommon.js | 146 ++++ .../timeline-offset-in-keyframe.html | 264 ++++++++ .../view-timelines/unattached-subject-inset.html | 59 ++ .../view-timeline-get-current-time-range-name.html | 148 ++++ .../view-timeline-get-set-range.html | 127 ++++ .../view-timelines/view-timeline-inset.html | 226 +++++++ .../view-timeline-missing-subject.html | 54 ++ .../view-timeline-on-display-none-element.html | 59 ++ .../view-timeline-range-large-subject.html | 105 +++ .../view-timelines/view-timeline-range.html | 198 ++++++ .../view-timelines/view-timeline-root-source.html | 41 ++ .../view-timelines/view-timeline-snapport.html | 58 ++ .../view-timeline-source.tentative.html | 94 +++ .../view-timelines/view-timeline-sticky-block.html | 94 +++ .../view-timeline-sticky-inline.html | 90 +++ .../view-timeline-subject-size-changes.html | 81 +++ ...ero-intrinsic-iteration-duration.tentative.html | 106 +++ 191 files changed, 22140 insertions(+) create mode 100644 testing/web-platform/tests/scroll-animations/META.yml create mode 100644 testing/web-platform/tests/scroll-animations/crashtests/invalid-animation-range.html 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-events.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-test.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-test.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-range-normal-matches-cover.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-range-visual-test-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-range-visual-test.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-deferred.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/animation-update-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited.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/merge-timeline-offset-keyframes.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-ref.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/pseudo-on-scroller.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.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.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-shadow.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-nearest-with-absolute-positioned-element.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-range-animation.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.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-update-reversed-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-with-percent-delay.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/support/animation-range.css create mode 100644 testing/web-platform/tests/scroll-animations/css/support/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-hidden-subject.html create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-with-document-timeline.html 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/timeline-scope-computed.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-scope-parsing.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/timeline-scope.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-animation-range-update.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-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-keyframe-boundary-interpolation.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-shadow.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-range-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-range-update-reversed-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-range-update.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-subject-bounds-update.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/css/view-timeline-with-delay-and-range.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-with-transform-on-subject.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/custom-property-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property.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/intrinsic-iteration-duration.tentative.html 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-range.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/animation-events.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/change-animation-range-updates-play-state.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/contain-alignment.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/fieldset-source.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/get-keyframes-with-timeline-offset.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/inline-subject.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/range-boundary-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/range-boundary.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-1.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-2.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-3.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-4.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-5.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-6.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/subject-br-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-001.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-002.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-003.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/timeline-offset-in-keyframe.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/unattached-subject-inset.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-get-set-range.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-missing-subject.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-on-display-none-element.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range-large-subject.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-root-source.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-sticky-block.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-inline.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/zero-intrinsic-iteration-duration.tentative.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/crashtests/invalid-animation-range.html b/testing/web-platform/tests/scroll-animations/crashtests/invalid-animation-range.html new file mode 100644 index 0000000000..43b23c93b6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/crashtests/invalid-animation-range.html @@ -0,0 +1,13 @@ + +Invalid animation range + +
+ + + 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..0198285913 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html @@ -0,0 +1,58 @@ + +animation-duration: auto + + + + + + + + +
+
+
+
+
+
+ + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-events.html b/testing/web-platform/tests/scroll-animations/css/animation-events.html new file mode 100644 index 0000000000..be53af487a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-events.html @@ -0,0 +1,87 @@ + + + +View timeline animation events + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-ref.html b/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-ref.html new file mode 100644 index 0000000000..998576b3a4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-ref.html @@ -0,0 +1,97 @@ + + + + + + + + + + +

All of the activity indicators should be active as the animations should be filling.

+
+
After cover phase:
+
Before cover phase:
+
+
After entry phase:
+
Before exit phase:
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-test.html b/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-test.html new file mode 100644 index 0000000000..90d4f4518b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-fill-outside-range-test.html @@ -0,0 +1,137 @@ + + + + + + + + + + + + +

All of the activity indicators should be active as the animations should be filling.

+
+
After cover phase:
+
Before cover phase:
+
+
After entry phase:
+
Before exit phase:
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-ref.html b/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-ref.html new file mode 100644 index 0000000000..e744055140 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-ref.html @@ -0,0 +1,100 @@ + + + + + + + + + + + +

None of the activity indicators should be active all of the animations are outside of their active range.

+
+
After cover phase:
+
Before cover phase:
+
+
After entry phase:
+
Before exit phase:
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-test.html b/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-test.html new file mode 100644 index 0000000000..8034e451be --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-inactive-outside-range-test.html @@ -0,0 +1,124 @@ + + + + + + + + + + + + +

None of the activity indicators should be active all of the animations are outside of their active range.

+
+
After cover phase:
+
Before cover phase:
+
+
After entry phase:
+
Before exit phase:
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html b/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html new file mode 100644 index 0000000000..98a5d45c37 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html @@ -0,0 +1,235 @@ + + + + + + + + + + + +Programmatic API overrides animation-range-* + + + +
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-range-normal-matches-cover.html b/testing/web-platform/tests/scroll-animations/css/animation-range-normal-matches-cover.html new file mode 100644 index 0000000000..a91e3d3e29 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-range-normal-matches-cover.html @@ -0,0 +1,92 @@ + + + + + + + + + + +Animation range 'normal' is equivalent to animation range 'cover' + + + +
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test-ref.html b/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test-ref.html new file mode 100644 index 0000000000..7e584400f7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test-ref.html @@ -0,0 +1,79 @@ + + + + + + + + + + + +

View timeline

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test.html b/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test.html new file mode 100644 index 0000000000..1ff2b12d1f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-range-visual-test.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + +

View timeline

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + 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..b7d5947a21 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html @@ -0,0 +1,166 @@ + + + + + + + + +
+ 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..1e621eee53 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html @@ -0,0 +1,73 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-deferred.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-deferred.html new file mode 100644 index 0000000000..d0671e5f23 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-deferred.html @@ -0,0 +1,109 @@ + +Deferred timelines via Animation.timeline + + + + + +
+ + + + + + + + + + + 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..b9efbb428b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html @@ -0,0 +1,153 @@ + + + + + + +
+
+
+
+
+
+
+ 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..04b430c324 --- /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..3196653656 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html @@ -0,0 +1,91 @@ + +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..5a1f26b3f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html @@ -0,0 +1,444 @@ + +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..7092523c48 --- /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..9e3c1078b5 --- /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..31c85810d5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html @@ -0,0 +1,177 @@ + +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..d91dfe924b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html @@ -0,0 +1,511 @@ + +The animation-timeline: view() notation + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-update-ref.html b/testing/web-platform/tests/scroll-animations/css/animation-update-ref.html new file mode 100644 index 0000000000..7e375a1df7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-update-ref.html @@ -0,0 +1,55 @@ + + + + + +Reference file for various tests that update an animation with a scroll timeline + + + + +
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited-ref.html b/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited-ref.html new file mode 100644 index 0000000000..088e93750a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited-ref.html @@ -0,0 +1,10 @@ + + +
diff --git a/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited.html b/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited.html new file mode 100644 index 0000000000..e2437911b3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/deferred-timeline-composited.html @@ -0,0 +1,78 @@ + + + + + + + + + + +
+
+
+
+
+
+
+
+
+ + + 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..83bc5b5f53 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html @@ -0,0 +1,84 @@ + + + +getAnimations for scroll-linked animations + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/merge-timeline-offset-keyframes.html b/testing/web-platform/tests/scroll-animations/css/merge-timeline-offset-keyframes.html new file mode 100644 index 0000000000..e5d5037d62 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/merge-timeline-offset-keyframes.html @@ -0,0 +1,135 @@ + + + + +Merge timeline offset keyframes + + + + + + + + +
+
+
+ + + 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..c37c1b95ef --- /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-ref.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print-ref.html new file mode 100644 index 0000000000..6610f7a5a7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print-ref.html @@ -0,0 +1,21 @@ + +Reference for default scroll() timeline + + +
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..3f25cc93db --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print.tentative.html @@ -0,0 +1,59 @@ + + +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..dd4add49b0 --- /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..d2f2d8f73d --- /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..25ce167553 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html @@ -0,0 +1,277 @@ + +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..bbc60e3fbd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html @@ -0,0 +1,56 @@ + +CSS Animation using progress based timeline + + + + + + +
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/pseudo-on-scroller.html b/testing/web-platform/tests/scroll-animations/css/pseudo-on-scroller.html new file mode 100644 index 0000000000..8dd49ce4d8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/pseudo-on-scroller.html @@ -0,0 +1,55 @@ + + + + + + Animating pseduo-element on scroller + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset-ref.html b/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset-ref.html new file mode 100644 index 0000000000..8e6907860b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset-ref.html @@ -0,0 +1,44 @@ + + +
+
TOP
+
+
BOTTOM
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset.html b/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset.html new file mode 100644 index 0000000000..34ae52d479 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-animation-initial-offset.html @@ -0,0 +1,73 @@ + + +Composited scroll-linked animation with initial scroll offset + + + +
+
TOP
+
+
BOTTOM
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.html new file mode 100644 index 0000000000..c942fb4093 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-computed.html @@ -0,0 +1,37 @@ + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.html new file mode 100644 index 0000000000..a9a760a54a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-parsing.html @@ -0,0 +1,31 @@ + + + + + +
+ + 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..cb9a98dcd8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html @@ -0,0 +1,143 @@ + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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..d1f143c7c1 --- /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..742c35b258 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-in-container-query.html @@ -0,0 +1,75 @@ + +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..eedc8e3958 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-inactive.html @@ -0,0 +1,90 @@ + + + + + + + +
+ + + + + + + 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..403316ead0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-multi-pass.tentative.html @@ -0,0 +1,110 @@ + +ScrollTimelines may trigger multiple style/layout passes + + + + + + + +
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.html new file mode 100644 index 0000000000..b803ee8212 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-computed.html @@ -0,0 +1,37 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.html new file mode 100644 index 0000000000..d38b9640af --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.html @@ -0,0 +1,32 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-shadow.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-shadow.html new file mode 100644 index 0000000000..a535b2a44f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-shadow.html @@ -0,0 +1,180 @@ + +scroll-timeline-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-nearest-with-absolute-positioned-element.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-with-absolute-positioned-element.html new file mode 100644 index 0000000000..57a1a94712 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-nearest-with-absolute-positioned-element.html @@ -0,0 +1,79 @@ + +The animation-timeline: scroll-timeline-name + + + + + + + + + +
+
+
+
+
+
+ + 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-range-animation.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-range-animation.html new file mode 100644 index 0000000000..df087da6e2 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-range-animation.html @@ -0,0 +1,182 @@ + +Scroll timelines and animation attachment ranges + + + + + + + +
+
+ + + + + + 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..a67f3b94e4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html @@ -0,0 +1,52 @@ + + + + + + +
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.html new file mode 100644 index 0000000000..722a8a1f4d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.html @@ -0,0 +1,109 @@ + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-update-reversed-animation.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-update-reversed-animation.html new file mode 100644 index 0000000000..6bc18544f4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-update-reversed-animation.html @@ -0,0 +1,69 @@ + + + + + +Attach a scroll timeline to a reversed animation refTest + + + + + + +
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-with-percent-delay.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-with-percent-delay.tentative.html new file mode 100644 index 0000000000..4f2e1761de --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-with-percent-delay.tentative.html @@ -0,0 +1,91 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/support/animation-range.css b/testing/web-platform/tests/scroll-animations/css/support/animation-range.css new file mode 100644 index 0000000000..1ebd0b429b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/support/animation-range.css @@ -0,0 +1,82 @@ +.flex { + display: flex; +} + +.flex > div { + position: relative; + height: 160px; + margin: 0 10px; +} + +.scroller { + width: 100px; + height: 100px; + overflow: auto; + border: 1px solid black; +} + +.subject { + view-timeline-name: --view; + width: 20px; + height: 20px; + margin: 100px auto; + background: green; +} + +.meters { + position: absolute; + left: 0; + top: 110px; + height: 50px; +} + +.meters > div { + display: flex; + align-items: center; +} + +@keyframes active-interval { + 0% { opacity: 1; } + 100% { opacity: 1; } +} + +.meter { + width: 50px; + position: relative; + border: 2px solid black; + height: 5px; + overflow: clip; + opacity: 0.4; + animation: active-interval linear; + animation-timeline: --view; +} + +@keyframes slide-in { + 0% { transform: translateX(-100%)} + 100% { transform: translateX(0%)} +} + +.bar { + width: 100%; + height: 100%; + background: blue; + transform: translateX(-100%); + animation: slide-in linear; + animation-timeline: --view; +} + +.spacer { + height: 400px; +} + +.contain .bar, .contain .meter { + animation-range: contain; +} + +.entry .bar, .entry .meter { + animation-range: entry; +} + +.exit .bar, .exit .meter { + animation-range: exit; +} 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..91540774d0 --- /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-offset-in-keyframe-change-timeline.tentative.html b/testing/web-platform/tests/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html new file mode 100644 index 0000000000..5a70820b88 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html @@ -0,0 +1,147 @@ + + + + + + + + + + +Animation range and delay + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-hidden-subject.html b/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-hidden-subject.html new file mode 100644 index 0000000000..011b8d4319 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-hidden-subject.html @@ -0,0 +1,126 @@ + + + + + + + + + + +Animation range and delay + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-with-document-timeline.html b/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-with-document-timeline.html new file mode 100644 index 0000000000..03ee381fd9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-offset-keyframes-with-document-timeline.html @@ -0,0 +1,80 @@ + + + + + + + + + + +Animation range and delay + + + +
+
+
+ + 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..6fab0025da --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html @@ -0,0 +1,111 @@ + + + +Timeline offset in Animation Keyframes + + + + + + + +
+
+
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-scope-computed.tentative.html b/testing/web-platform/tests/scroll-animations/css/timeline-scope-computed.tentative.html new file mode 100644 index 0000000000..814933f726 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-scope-computed.tentative.html @@ -0,0 +1,35 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-scope-parsing.tentative.html b/testing/web-platform/tests/scroll-animations/css/timeline-scope-parsing.tentative.html new file mode 100644 index 0000000000..2885cb758d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-scope-parsing.tentative.html @@ -0,0 +1,29 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-scope.html b/testing/web-platform/tests/scroll-animations/css/timeline-scope.html new file mode 100644 index 0000000000..e4e90bc03a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-scope.html @@ -0,0 +1,322 @@ + +Behavior of the timeline-scope property + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-animation-range-update.tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation-range-update.tentative.html new file mode 100644 index 0000000000..552461c9b6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation-range-update.tentative.html @@ -0,0 +1,78 @@ + + + + +Change animation-range after creation + + + + + + + +
+
+
+ + + 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..1bf034a742 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html @@ -0,0 +1,223 @@ + +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..30b2a1ae05 --- /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..1ebe4410a9 --- /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-dynamic.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html new file mode 100644 index 0000000000..81dc8353c2 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html @@ -0,0 +1,200 @@ + +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..f9aa0f2918 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html @@ -0,0 +1,743 @@ + +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..d9e1c9d790 --- /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-keyframe-boundary-interpolation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html new file mode 100644 index 0000000000..011f03cb5d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html @@ -0,0 +1,121 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+ + + 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..067ac1fa96 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html @@ -0,0 +1,253 @@ + +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..3304723f43 --- /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..2b22cbe036 --- /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-shadow.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-shadow.html new file mode 100644 index 0000000000..11902a3c6e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-shadow.html @@ -0,0 +1,181 @@ + +view-timeline-name and and shadow trees + + + + + + + +
+ + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-range-animation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-animation.html new file mode 100644 index 0000000000..9e5993b63a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-animation.html @@ -0,0 +1,232 @@ + +View timelines and animation attachment ranges + + + + + + + +
+
+ + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update-reversed-animation.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update-reversed-animation.html new file mode 100644 index 0000000000..960a8e6ecf --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update-reversed-animation.html @@ -0,0 +1,69 @@ + + + + + +Update timeline range on reversed animation refTest + + + + + + +
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update.html new file mode 100644 index 0000000000..e1938caf50 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update.html @@ -0,0 +1,66 @@ + + + + + +Update timeline range refTest + + + + + + +
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.html new file mode 100644 index 0000000000..9027eb0b09 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.html @@ -0,0 +1,164 @@ + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-subject-bounds-update.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-subject-bounds-update.html new file mode 100644 index 0000000000..2961fedd42 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-subject-bounds-update.html @@ -0,0 +1,71 @@ + + + + + +Update subject bounds refTest + + + + + + +
+
+
+ + + + 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..1bd6f0468c --- /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/css/view-timeline-with-delay-and-range.tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-with-delay-and-range.tentative.html new file mode 100644 index 0000000000..db260f15f0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-with-delay-and-range.tentative.html @@ -0,0 +1,93 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-with-transform-on-subject.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-with-transform-on-subject.html new file mode 100644 index 0000000000..e4abac7219 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-with-transform-on-subject.html @@ -0,0 +1,76 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+
+
+ + + 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..88c6a453ec --- /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..748cda2f89 --- /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/custom-property-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property-ref.html new file mode 100644 index 0000000000..66e29cde65 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property-ref.html @@ -0,0 +1,34 @@ + + + + + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property.html new file mode 100644 index 0000000000..d6fdda6752 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/custom-property.html @@ -0,0 +1,46 @@ + + + + + + + + + + +
+
+ + + 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..0c7a546572 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html @@ -0,0 +1,630 @@ + + +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..3faff63dc9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html @@ -0,0 +1,393 @@ + + +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/intrinsic-iteration-duration.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/intrinsic-iteration-duration.tentative.html new file mode 100644 index 0000000000..4bcea1adba --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/intrinsic-iteration-duration.tentative.html @@ -0,0 +1,78 @@ + + +Scroll based animation: AnimationEffect.getComputedTiming + + + + + + + +
+ + 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..1f9641e2f8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html @@ -0,0 +1,178 @@ + + +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..7d95eaa257 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html @@ -0,0 +1,276 @@ + + +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..1054ed3983 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html @@ -0,0 +1,164 @@ + + +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..41ae0e0612 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html @@ -0,0 +1,555 @@ + + +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..02220cee14 --- /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..e3544762f6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html @@ -0,0 +1,160 @@ + + +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..a26500989e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html @@ -0,0 +1,133 @@ + + +ScrollTimeline invalidation + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-range.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-range.html new file mode 100644 index 0000000000..cc844cb748 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-range.html @@ -0,0 +1,185 @@ + +Scroll timelines and animation attachment ranges + + + + + + + +
+
+
+
+ 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..280346e755 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html @@ -0,0 +1,75 @@ + +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..e7e96a27e1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html @@ -0,0 +1,298 @@ + + +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..aae1849565 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html @@ -0,0 +1,401 @@ + + +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..5813de60fa --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html @@ -0,0 +1,429 @@ + + +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..10535319fc --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html @@ -0,0 +1,178 @@ + + +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/animation-events.html b/testing/web-platform/tests/scroll-animations/view-timelines/animation-events.html new file mode 100644 index 0000000000..b456794225 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/animation-events.html @@ -0,0 +1,83 @@ + + + +View timeline delay + + + + + + +
+
+
+
+
+ + 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..beb380060e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html @@ -0,0 +1,101 @@ + + + +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..c24d04412f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html @@ -0,0 +1,207 @@ + + + +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..6fdc7c6822 --- /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/change-animation-range-updates-play-state.html b/testing/web-platform/tests/scroll-animations/view-timelines/change-animation-range-updates-play-state.html new file mode 100644 index 0000000000..ee01070a53 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/change-animation-range-updates-play-state.html @@ -0,0 +1,88 @@ + + + + + + + + + + + +Animation range updates play state + + + +
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/contain-alignment.html b/testing/web-platform/tests/scroll-animations/view-timelines/contain-alignment.html new file mode 100644 index 0000000000..8b61a9ab81 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/contain-alignment.html @@ -0,0 +1,112 @@ + + + + + + +
+
+
+
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/fieldset-source.html b/testing/web-platform/tests/scroll-animations/view-timelines/fieldset-source.html new file mode 100644 index 0000000000..d75f30e664 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/fieldset-source.html @@ -0,0 +1,111 @@ + + + +View timeline with fieldset as source + + + + + + +
+ Reservation Details +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/get-keyframes-with-timeline-offset.html b/testing/web-platform/tests/scroll-animations/view-timelines/get-keyframes-with-timeline-offset.html new file mode 100644 index 0000000000..02f910d04e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/get-keyframes-with-timeline-offset.html @@ -0,0 +1,203 @@ + + + + + + + + + + +Reported keyframes containing timeline offset + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/inline-subject.html b/testing/web-platform/tests/scroll-animations/view-timelines/inline-subject.html new file mode 100644 index 0000000000..6b1d216dea --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/inline-subject.html @@ -0,0 +1,50 @@ + + + + + + View Timeline attached to an SVG graphics element + + + +
+
+

Hello world

+
+
+ + + + + + 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..59d73d0cdf --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html @@ -0,0 +1,302 @@ + + + +View timeline current-time + + + + + + + + +
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary-ref.html b/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary-ref.html new file mode 100644 index 0000000000..057d0afabc --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary-ref.html @@ -0,0 +1,63 @@ + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary.html b/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary.html new file mode 100644 index 0000000000..e2ca394ec0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/range-boundary.html @@ -0,0 +1,153 @@ + + + + + + + + + + + +
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+ + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-1.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-1.html new file mode 100644 index 0000000000..d8756769c5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-1.html @@ -0,0 +1,120 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-2.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-2.html new file mode 100644 index 0000000000..2d098dcbe3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-2.html @@ -0,0 +1,121 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-3.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-3.html new file mode 100644 index 0000000000..c87dfc4dcb --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-3.html @@ -0,0 +1,121 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-4.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-4.html new file mode 100644 index 0000000000..f6b02ffb2e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-4.html @@ -0,0 +1,120 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-5.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-5.html new file mode 100644 index 0000000000..380c01297e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-5.html @@ -0,0 +1,121 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-6.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-6.html new file mode 100644 index 0000000000..94f0abc9b1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-6.html @@ -0,0 +1,127 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7.html b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7.html new file mode 100644 index 0000000000..83115249fa --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/sticky/view-timeline-sticky-offscreen-7.html @@ -0,0 +1,128 @@ + + + + +View timeline with sticky during entry/exit + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/subject-br-crash.html b/testing/web-platform/tests/scroll-animations/view-timelines/subject-br-crash.html new file mode 100644 index 0000000000..36627dbea6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/subject-br-crash.html @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-001.html b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-001.html new file mode 100644 index 0000000000..9b100a0b64 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-001.html @@ -0,0 +1,45 @@ + + + + + + View Timeline attached to an SVG graphics element + + + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-002.html b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-002.html new file mode 100644 index 0000000000..e173a649ef --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-002.html @@ -0,0 +1,47 @@ + + + + + + View Timeline attached to an SVG graphics element in a nested <svg> + + + + + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-003.html b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-003.html new file mode 100644 index 0000000000..48e238c8ed --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/svg-graphics-element-003.html @@ -0,0 +1,48 @@ + + + + + + View Timeline attached to an SVG graphics element (<foreignObject>) + + + + + +
+
+
+
+ + + + + + 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..a798fe918d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js @@ -0,0 +1,146 @@ +'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 timeline_options = { + subject: target, + axis: 'block' + }; + if (options && 'timeline' in options) { + for (let key in options.timeline) { + timeline_options[key] = options.timeline[key]; + } + } + const animation_options = { + timeline: new ViewTimeline(timeline_options) + }; + if (options && 'animation' in options) { + for (let key in options.animation) { + animation_options[key] = options.animation[key]; + } + } + + const anim = + target.animate({ opacity: [0.3, 0.7] }, animation_options); + 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 runTimelineBoundsTest(t, { +// timeline: { inset: [ CSS.percent(0), CSS.percent(20)] }, +// timing: { fill: 'both' } +// startOffset: 600, +// endOffset: 900 +// }); +async function runTimelineBoundsTest(t, options, message) { + const scrollOffsetProp = options.axis == 'block' ? 'scrollTop' : 'scrollLeft'; + container[scrollOffsetProp] = 0; + await waitForNextFrame(); + + const anim = + options.anim || + CreateViewTimelineOpacityAnimation(t, target, options); + 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[scrollOffsetProp] = options.startOffset; + 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[scrollOffsetProp] = (options.startOffset + options.endOffset) / 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[scrollOffsetProp] = options.endOffset; + 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 range for a view timeline and ensures that the +// range aligns with expected values. +// +// Sample call: +// await runTimelineRangeTest(t, { +// rangeStart: { rangeName: 'cover', offset: CSS.percent(0) } , +// rangeEnd: { rangeName: 'cover', offset: CSS.percent(100) }, +// startOffset: 600, +// endOffset: 900 +// }); +async function runTimelineRangeTest(t, options) { + const rangeToString = range => { + const parts = []; + if (range.rangeName) + parts.push(range.rangeName); + if (range.offset) + parts.push(`${range.offset.value}%`); + return parts.join(' '); + }; + const range = + `${rangeToString(options.rangeStart)} to ` + + `${rangeToString(options.rangeEnd)}`; + + options.timeline = { + axis: options.axis || 'inline' + }; + options.animation = { + rangeStart: options.rangeStart, + rangeEnd: options.rangeEnd, + }; + options.timing = { + // Set fill to accommodate floating point precision errors at the + // endpoints. + fill: 'both' + }; + + return runTimelineBoundsTest(t, options, range); +} + +// Sets the Inset for a view timeline and ensures that the range aligns with +// expected values. +// +// Sample call: +// await runTimelineInsetTest(t, { +// inset: [ CSS.px(20), CSS.px(40) ] +// startOffset: 600, +// endOffset: 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 runTimelineBoundsTest(t, options, range); +} diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/timeline-offset-in-keyframe.html b/testing/web-platform/tests/scroll-animations/view-timelines/timeline-offset-in-keyframe.html new file mode 100644 index 0000000000..1168893854 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/timeline-offset-in-keyframe.html @@ -0,0 +1,264 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/unattached-subject-inset.html b/testing/web-platform/tests/scroll-animations/view-timelines/unattached-subject-inset.html new file mode 100644 index 0000000000..86262db8f8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/unattached-subject-inset.html @@ -0,0 +1,59 @@ + + + + + + Test construction of a view timeline with a detached subject + + + + + + +
+
+
+ + + 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..25e477e1a9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html @@ -0,0 +1,148 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-set-range.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-set-range.html new file mode 100644 index 0000000000..94660abcf2 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-set-range.html @@ -0,0 +1,127 @@ + + + +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..357d8558f9 --- /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-missing-subject.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-missing-subject.html new file mode 100644 index 0000000000..01ca021524 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-missing-subject.html @@ -0,0 +1,54 @@ + + + + +ViewTimeline with missing subject + + + + + + +
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-on-display-none-element.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-on-display-none-element.html new file mode 100644 index 0000000000..1cc23fe626 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-on-display-none-element.html @@ -0,0 +1,59 @@ + + +View timeline on element with display:none + + + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range-large-subject.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range-large-subject.html new file mode 100644 index 0000000000..f87a57584e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range-large-subject.html @@ -0,0 +1,105 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range.html new file mode 100644 index 0000000000..5042c6c2a0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-range.html @@ -0,0 +1,198 @@ + + + +View timeline delay + + + + + + + + +
+
+
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-root-source.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-root-source.html new file mode 100644 index 0000000000..20ac9c5464 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-root-source.html @@ -0,0 +1,41 @@ + + + +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-sticky-block.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-block.html new file mode 100644 index 0000000000..43b717560d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-block.html @@ -0,0 +1,94 @@ + + + + +View timeline with sticky + + + + + + + + + +
+
+
+
+
+
Subject
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-inline.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-inline.html new file mode 100644 index 0000000000..4dc8331d9f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-sticky-inline.html @@ -0,0 +1,90 @@ + + + + +View timeline with sticky + + + + + + + + + +
+ + + 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..ee7ce90678 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-subject-size-changes.html @@ -0,0 +1,81 @@ + + + +View timeline Subject size changes after creation of Animation + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/zero-intrinsic-iteration-duration.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/zero-intrinsic-iteration-duration.tentative.html new file mode 100644 index 0000000000..4eec5d8f13 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/zero-intrinsic-iteration-duration.tentative.html @@ -0,0 +1,106 @@ + + + + + + + + + + + +Animation range updates play state + + + +
+
+
+ + -- cgit v1.2.3