From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. 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 | 56 ++ .../css/animation-range-ignored.html | 229 ++++++ .../css/animation-range-normal-matches-cover.html | 92 +++ .../scroll-animations/css/animation-shorthand.html | 142 ++++ .../css/animation-timeline-computed.html | 73 ++ .../css/animation-timeline-ignored.tentative.html | 147 ++++ .../css/animation-timeline-in-keyframe.html | 27 + .../css/animation-timeline-multiple.html | 99 +++ ...e-named-scroll-progress-timeline.tentative.html | 431 ++++++++++++ .../css/animation-timeline-none.html | 41 ++ .../css/animation-timeline-parsing.html | 85 +++ ...eline-scroll-functional-notation.tentative.html | 166 +++++ ...imeline-view-functional-notation.tentative.html | 474 +++++++++++++ .../css/animation-update-ref.html | 55 ++ .../css/get-animations-inactive-timeline.html | 87 +++ .../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 | 255 +++++++ .../css/progress-based-animation-timeline.html | 56 ++ .../css/scroll-animation-initial-offset-ref.html | 44 ++ .../css/scroll-animation-initial-offset.html | 73 ++ ...oll-timeline-attachment-computed-tentative.html | 35 + ...roll-timeline-attachment-parsing-tentative.html | 29 + .../css/scroll-timeline-attachment.html | 417 +++++++++++ .../css/scroll-timeline-axis-computed.html | 37 + .../css/scroll-timeline-axis-parsing.html | 31 + .../css/scroll-timeline-axis-writing-mode.html | 139 ++++ .../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 | 271 ++++++++ .../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 | 31 + .../css/scroll-timeline-name-shadow.html | 185 +++++ .../css/scroll-timeline-nearest-dirty.html | 42 ++ ...e-nearest-with-absolute-positioned-element.html | 79 +++ .../css/scroll-timeline-paused-animations.html | 95 +++ ...roll-timeline-responsiveness-from-endpoint.html | 62 ++ .../css/scroll-timeline-root-dirty.html | 35 + .../css/scroll-timeline-sampling.html | 46 ++ .../css/scroll-timeline-shorthand.tentative.html | 122 ++++ .../scroll-timeline-update-reversed-animation.html | 69 ++ ...roll-timeline-with-percent-delay.tentative.html | 91 +++ .../scroll-animations/css/support/testcommon.js | 19 + ...fset-in-keyframe-change-timeline.tentative.html | 148 ++++ .../timeline-offset-keyframes-hidden-subject.html | 126 ++++ ...ne-offset-keyframes-with-document-timeline.html | 80 +++ ...e-range-name-offset-in-keyframes.tentative.html | 109 +++ .../css/timeline-scope-computed.tentative.html | 35 + .../css/timeline-scope-parsing.tentative.html | 29 + ...-timeline-animation-range-update.tentative.html | 78 +++ .../css/view-timeline-animation.html | 221 ++++++ ...iew-timeline-attachment-computed-tentative.html | 35 + ...view-timeline-attachment-parsing-tentative.html | 29 + .../css/view-timeline-attachment.html | 433 ++++++++++++ .../css/view-timeline-axis-computed.html | 37 + .../css/view-timeline-axis-parsing.html | 29 + .../css/view-timeline-dynamic.html | 193 ++++++ .../css/view-timeline-inset-animation.html | 769 +++++++++++++++++++++ .../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 | 273 ++++++++ .../css/view-timeline-name-computed.html | 36 + .../css/view-timeline-name-parsing.html | 30 + .../css/view-timeline-name-shadow.html | 186 +++++ .../css/view-timeline-range-animation.html | 203 ++++++ ...w-timeline-range-update-reversed-animation.html | 69 ++ .../css/view-timeline-range-update.html | 68 ++ .../css/view-timeline-shorthand.tentative.html | 117 ++++ .../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/effect-updateTiming.html | 602 ++++++++++++++++ .../scroll-timelines/finish-animation.html | 449 ++++++++++++ .../scroll-timelines/idlharness.window.js | 16 + ...ayout-changes-on-percentage-based-timeline.html | 84 +++ .../scroll-timelines/null-scroll-source-crash.html | 24 + .../scroll-timelines/pause-animation.html | 210 ++++++ .../scroll-timelines/play-animation.html | 233 +++++++ .../progress-based-effect-delay-ref.html | 45 ++ .../progress-based-effect-delay.tentative.html | 69 ++ .../scroll-timelines/reverse-animation.html | 240 +++++++ ...roll-animation-effect-fill-modes.tentative.html | 137 ++++ .../scroll-animation-effect-phases.tentative.html | 480 +++++++++++++ .../scroll-animation-inactive-timeline.html | 170 +++++ .../scroll-timelines/scroll-animation.html | 216 ++++++ .../scroll-timeline-in-removed-iframe-crash.html | 20 + .../scroll-timeline-invalidation.html | 153 ++++ .../scroll-timeline-snapshotting.html | 44 ++ .../set-current-time-before-play.html | 69 ++ .../scroll-timelines/setting-current-time.html | 286 ++++++++ .../scroll-timelines/setting-playback-rate.html | 323 +++++++++ .../scroll-timelines/setting-start-time.html | 439 ++++++++++++ .../setting-timeline.tentative.html | 394 +++++++++++ .../scroll-timelines/source-quirks-mode.html | 36 + .../scroll-timelines/testcommon.js | 124 ++++ ...-attach-to-same-scroll-timeline-cancel-one.html | 84 +++ ...-animations-attach-to-same-scroll-timeline.html | 79 +++ .../scroll-timelines/update-playback-rate.html | 181 +++++ .../updating-the-finished-state.html | 565 +++++++++++++++ ...imeline-current-time-vertical-rl.tentative.html | 97 +++ ...block-view-timeline-current-time.tentative.html | 205 ++++++ ...ock-view-timeline-nested-subject.tentative.html | 113 +++ .../change-animation-range-updates-play-state.html | 77 +++ .../get-keyframes-with-timeline-offset.html | 203 ++++++ ...nline-view-timeline-current-time.tentative.html | 301 ++++++++ .../scroll-animations/view-timelines/testcommon.js | 145 ++++ .../timeline-offset-in-keyframe.html | 263 +++++++ .../view-timeline-get-current-time-range-name.html | 148 ++++ .../view-timeline-get-set-range.html | 120 ++++ .../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-timeline-subject-size-changes.html | 81 +++ ...ero-intrinsic-iteration-duration.tentative.html | 106 +++ 159 files changed, 19381 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-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-shorthand.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-computed.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/animation-update-ref.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/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-attachment-computed-tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-parsing-tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment.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-responsiveness-from-endpoint.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-root-dirty.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/scroll-timeline-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/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/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-attachment-computed-tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-parsing-tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/css/view-timeline-attachment.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.tentative.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/effect-updateTiming.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/reverse-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-fill-modes.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-effect-phases.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation-inactive-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-animation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-in-removed-iframe-crash.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-invalidation.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/scroll-timeline-snapshotting.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/set-current-time-before-play.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-current-time.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-playback-rate.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-start-time.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/setting-timeline.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/source-quirks-mode.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline-cancel-one.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/two-animations-attach-to-same-scroll-timeline.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html create mode 100644 testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/change-animation-range-updates-play-state.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-view-timeline-current-time.tentative.html create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js create mode 100644 testing/web-platform/tests/scroll-animations/view-timelines/timeline-offset-in-keyframe.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-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..375489c26a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-duration-auto.tentative.html @@ -0,0 +1,56 @@ + +animation-duration: auto + + + + + + + + +
+
+
+
+
+
+ + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html b/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html new file mode 100644 index 0000000000..f08659635e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-range-ignored.html @@ -0,0 +1,229 @@ + + + + + + + + + + + +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..44b08cab96 --- /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-shorthand.html b/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html new file mode 100644 index 0000000000..7bd17b9919 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-shorthand.html @@ -0,0 +1,142 @@ + + + + + + + + +
+ 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..7759e799c6 --- /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-ignored.tentative.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html new file mode 100644 index 0000000000..0ac7a9d63e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-ignored.tentative.html @@ -0,0 +1,147 @@ + + + + + + +
+
+
+
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html new file mode 100644 index 0000000000..7548333139 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-in-keyframe.html @@ -0,0 +1,27 @@ + + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html new file mode 100644 index 0000000000..50a829c5b6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-multiple.html @@ -0,0 +1,99 @@ + +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..8dcf48c4ac --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-named-scroll-progress-timeline.tentative.html @@ -0,0 +1,431 @@ + +The animation-timeline: scroll-timeline-name + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html new file mode 100644 index 0000000000..a8e07a44d6 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-none.html @@ -0,0 +1,41 @@ + + + + + + + +
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html b/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html new file mode 100644 index 0000000000..4916f7726f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-parsing.html @@ -0,0 +1,85 @@ + + + + + + +
+ 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..09917b4ba5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-scroll-functional-notation.tentative.html @@ -0,0 +1,166 @@ + +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..745d76c729 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/animation-timeline-view-functional-notation.tentative.html @@ -0,0 +1,474 @@ + +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/get-animations-inactive-timeline.html b/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html new file mode 100644 index 0000000000..10bf00fbbc --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/get-animations-inactive-timeline.html @@ -0,0 +1,87 @@ + + + +getAnimations for scroll-linked animations + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/merge-timeline-offset-keyframes.html b/testing/web-platform/tests/scroll-animations/css/merge-timeline-offset-keyframes.html new file mode 100644 index 0000000000..c6d384fce5 --- /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..3939a1df48 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-print.tentative.html @@ -0,0 +1,56 @@ + + +The animation-timeline:none with preserved progress for print + + + + + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html new file mode 100644 index 0000000000..09bcba2fd4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/animation-timeline-none-with-progress-ref.html @@ -0,0 +1,38 @@ + + +Reference for none animation-timeline + + +
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html new file mode 100644 index 0000000000..d732ca141a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-iframe-print.html @@ -0,0 +1,65 @@ + + +The default scroll() timeline in the iframe for print + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/printing/scroll-timeline-default-print-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..05fab3e46a --- /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..f4f9a669f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-animation-longhand-properties.tentative.html @@ -0,0 +1,255 @@ + +The various animation longhands with progress based animations + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html b/testing/web-platform/tests/scroll-animations/css/progress-based-animation-timeline.html new file mode 100644 index 0000000000..eeb1e548e5 --- /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/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-attachment-computed-tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-computed-tentative.html new file mode 100644 index 0000000000..3ec18a0eb9 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-computed-tentative.html @@ -0,0 +1,35 @@ + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-parsing-tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-parsing-tentative.html new file mode 100644 index 0000000000..3235292d20 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment-parsing-tentative.html @@ -0,0 +1,29 @@ + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment.html new file mode 100644 index 0000000000..7996e48cea --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-attachment.html @@ -0,0 +1,417 @@ + +Scroll Timeline Attachment + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..b971aba6c0 --- /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..25f48f0c70 --- /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..958ce4964e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html @@ -0,0 +1,139 @@ + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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..744639f663 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-dynamic.tentative.html @@ -0,0 +1,271 @@ + + + + + + + + +
+
+
+
+
+
+
+
+
+ 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..38b8ffdc15 --- /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..0953f1b389 --- /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..651ba212de --- /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..bfffafc652 --- /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..0fb271250a --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-parsing.html @@ -0,0 +1,31 @@ + + + + + +
+ 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..f5cd2ce47d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-name-shadow.html @@ -0,0 +1,185 @@ + +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..7fe2d12be3 --- /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-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..51b60e73ce --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-sampling.html @@ -0,0 +1,46 @@ + + + + + + +
+
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html new file mode 100644 index 0000000000..68e1cc955f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/scroll-timeline-shorthand.tentative.html @@ -0,0 +1,122 @@ + + + + + + + +
+ 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..93ad6916ea --- /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/testcommon.js b/testing/web-platform/tests/scroll-animations/css/support/testcommon.js new file mode 100644 index 0000000000..66bc27bb10 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/support/testcommon.js @@ -0,0 +1,19 @@ +'use strict'; + +/** + * Returns a Promise that is resolved after a CSS scroll timeline is created (as + * the result of a style change) and a snapshot has been taken, so that the + * animation style is correctly reflected by getComputedStyle(). + * Technically, this only takes a full frame update. We implement this as two + * requestAnimationFrame callbacks because the result will be available at the + * beginning of the second frame. + */ +async function waitForCSSScrollTimelineStyle() { + await waitForNextFrame(); + await waitForNextFrame(); +} + +function assert_implements_animation_timeline() { + assert_implements(CSS.supports('animation-timeline:foo'), + 'animation-timeline not supported'); +} diff --git a/testing/web-platform/tests/scroll-animations/css/timeline-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..eeb13150aa --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html @@ -0,0 +1,148 @@ + + + + + + + + + + +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..bea072aaf7 --- /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..54467bc83b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html @@ -0,0 +1,109 @@ + + + +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/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..6c2a792aee --- /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..a367ef9dd8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-animation.html @@ -0,0 +1,221 @@ + +Animations using view-timeline + + + + + + + +
+ + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-computed-tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-computed-tentative.html new file mode 100644 index 0000000000..dd244e137b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-computed-tentative.html @@ -0,0 +1,35 @@ + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-parsing-tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-parsing-tentative.html new file mode 100644 index 0000000000..25e20135f1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-parsing-tentative.html @@ -0,0 +1,29 @@ + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment.html new file mode 100644 index 0000000000..ff98ed7825 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment.html @@ -0,0 +1,433 @@ + +View Timeline Attachment + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html new file mode 100644 index 0000000000..f4649dab04 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-computed.html @@ -0,0 +1,37 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html new file mode 100644 index 0000000000..ffcc36c320 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html @@ -0,0 +1,29 @@ + + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html new file mode 100644 index 0000000000..207c8c4e22 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-dynamic.html @@ -0,0 +1,193 @@ + +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..a7e807c2e8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-inset-animation.html @@ -0,0 +1,769 @@ + +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..04eb648949 --- /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..6cead9dc58 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-lookup.html @@ -0,0 +1,273 @@ + +Named view-timeline lookup + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html new file mode 100644 index 0000000000..5657dc7817 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-computed.html @@ -0,0 +1,36 @@ + + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html new file mode 100644 index 0000000000..3878d5c583 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-parsing.html @@ -0,0 +1,30 @@ + + + + + +
+ diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-name-shadow.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-shadow.html new file mode 100644 index 0000000000..55240efcfb --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-name-shadow.html @@ -0,0 +1,186 @@ + +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..3d7593823d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-animation.html @@ -0,0 +1,203 @@ + +Animations using named timeline 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..c719916160 --- /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..e8e761d86b --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-range-update.html @@ -0,0 +1,68 @@ + + + + + +Update timeline range refTest + + + + + + +
+
+
+ + + + diff --git a/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html new file mode 100644 index 0000000000..f19b9e6ac2 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-shorthand.tentative.html @@ -0,0 +1,117 @@ + + + + + + + + + +
+ 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..7001eceeaf --- /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..6627eeb998 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/css/view-timeline-used-values.html @@ -0,0 +1,104 @@ + +Used values of view-timeline properties + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/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..e8f537b188 --- /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..8e211efa11 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/constructor.html @@ -0,0 +1,95 @@ + + +ScrollTimeline constructor + + + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html new file mode 100644 index 0000000000..440b1f413e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-nan.html @@ -0,0 +1,80 @@ + + +ScrollTimeline current time algorithm - NaN cases + + + + + + +
+
+
+ + + + + + + +
+
+
+ diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html new file mode 100644 index 0000000000..be1d62bec5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-root-scroller.html @@ -0,0 +1,49 @@ + + +ScrollTimeline current time algorithm - root scroller + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html new file mode 100644 index 0000000000..d18abcd48f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/current-time-writing-modes.html @@ -0,0 +1,148 @@ + + +ScrollTimeline current time algorithm - interaction with writing modes + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html new file mode 100644 index 0000000000..78ec8e1de5 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/effect-updateTiming.html @@ -0,0 +1,602 @@ + + +Scroll based animation: AnimationEffect.updateTiming + + + + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html new file mode 100644 index 0000000000..fd768651b4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/finish-animation.html @@ -0,0 +1,449 @@ + + +Finishing an animation + + + + + + + +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js b/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js new file mode 100644 index 0000000000..90157580ce --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/idlharness.window.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +idl_test( + ['scroll-animations'], + // The css-pseudo dependency shouldn't be necessary, but is: + // https://github.com/web-platform-tests/wpt/issues/12574 + ['web-animations', 'css-pseudo', 'dom'], + idl_array => { + idl_array.add_objects({ + ScrollTimeline: ['new ScrollTimeline()'], + }); + } +); diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html new file mode 100644 index 0000000000..c5a46a501e --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/layout-changes-on-percentage-based-timeline.html @@ -0,0 +1,84 @@ + +Layout changes on percentage-based scroll timeline + + + + + + + + + +
+
Scrolling Test
+
+
+ +
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html new file mode 100644 index 0000000000..53ad0d9285 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/null-scroll-source-crash.html @@ -0,0 +1,24 @@ + + + + + +
+ \ No newline at end of file diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html new file mode 100644 index 0000000000..9b263f843d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/pause-animation.html @@ -0,0 +1,210 @@ + + +Pausing an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html new file mode 100644 index 0000000000..d408547f55 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/play-animation.html @@ -0,0 +1,233 @@ + + +Playing an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html new file mode 100644 index 0000000000..59366a88dd --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay-ref.html @@ -0,0 +1,45 @@ + +Reference for Web Animation with scroll timeline and effect delay tests + + +
+
+
+
+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html new file mode 100644 index 0000000000..525d8448ff --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/progress-based-effect-delay.tentative.html @@ -0,0 +1,69 @@ + +Animation effect delays should be accounted for when using a progress based timeline + + + + + + + + + +
+
+
+

Scrolling Contents

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

Scrolling Contents

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

Scrolling Contents

+
+ + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html new file mode 100644 index 0000000000..1db31602f3 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/update-playback-rate.html @@ -0,0 +1,181 @@ + + +Seamlessly updating the playback rate of an animation + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html b/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html new file mode 100644 index 0000000000..86b52d5aa0 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/scroll-timelines/updating-the-finished-state.html @@ -0,0 +1,565 @@ + + +Updating the finished state + + + + + + + + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html new file mode 100644 index 0000000000..5bc4598452 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time-vertical-rl.tentative.html @@ -0,0 +1,97 @@ + + + +View timeline current-time with vertical-rl writing mode + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html new file mode 100644 index 0000000000..a6530f6631 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-current-time.tentative.html @@ -0,0 +1,205 @@ + + + +View timeline current-time + + + + + + + + +
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html new file mode 100644 index 0000000000..2cc8af882f --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/block-view-timeline-nested-subject.tentative.html @@ -0,0 +1,113 @@ + + + +View timeline nested subject + + + + + + + + +
+
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/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..53330d32f1 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/change-animation-range-updates-play-state.html @@ -0,0 +1,77 @@ + + + + + + + + + + + +Animation range updates play state + + + +
+
+
+ + 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-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..5b37798fe8 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/inline-view-timeline-current-time.tentative.html @@ -0,0 +1,301 @@ + + + +View timeline current-time + + + + + + + + +
+
+
+
+
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js b/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js new file mode 100644 index 0000000000..65301215c4 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/testcommon.js @@ -0,0 +1,145 @@ +'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) { + container.scrollLeft = 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.scrollLeft = 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.scrollLeft = (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.scrollLeft = 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: '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..62a8d1387d --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/timeline-offset-in-keyframe.html @@ -0,0 +1,263 @@ + + + + + + + + + +Animation range and delay + + + +
+
+
+ + + diff --git a/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-current-time-range-name.html new file mode 100644 index 0000000000..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..6de2d84df7 --- /dev/null +++ b/testing/web-platform/tests/scroll-animations/view-timelines/view-timeline-get-set-range.html @@ -0,0 +1,120 @@ + + + +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-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..9ae4b1df77 --- /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..e77cf4629c --- /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