Update web-platform-tests to revision b'c9946198c9ee19db3b4974a388fae45da844a94a'

This commit is contained in:
WPT Sync Bot 2023-05-14 01:35:09 +00:00
parent 8dfd613aa1
commit 06e9d5a631
366 changed files with 8783 additions and 2336 deletions

View file

@ -17,7 +17,7 @@
<script>
assert_not_inherited('animation-delay', '0s', '2s');
assert_not_inherited('animation-direction', 'normal', 'reverse');
assert_not_inherited('animation-duration', '0s', '3s');
assert_not_inherited('animation-duration', 'auto', '3s');
assert_not_inherited('animation-fill-mode', 'none', 'forwards');
assert_not_inherited('animation-iteration-count', '1', '4');
assert_not_inherited('animation-name', 'none', 'spinner');

View file

@ -18,24 +18,24 @@
// [ none | <keyframes-name> ]
test(() => {
assert_equals(getComputedStyle(document.getElementById('target')).animation, "0s ease 0s 1 normal none running none");
assert_equals(getComputedStyle(document.getElementById('target')).animation, "auto ease 0s 1 normal none running none");
}, "Default animation value");
test_computed_value("animation", "1s", "1s ease 0s 1 normal none running none");
test_computed_value("animation", "cubic-bezier(0, -2, 1, 3)", "0s cubic-bezier(0, -2, 1, 3) 0s 1 normal none running none");
test_computed_value("animation", "cubic-bezier(0, -2, 1, 3)", "auto cubic-bezier(0, -2, 1, 3) 0s 1 normal none running none");
test_computed_value("animation", "1s -3s", "1s ease -3s 1 normal none running none");
test_computed_value("animation", "4", "0s ease 0s 4 normal none running none");
test_computed_value("animation", "reverse", "0s ease 0s 1 reverse none running none");
test_computed_value("animation", "both", "0s ease 0s 1 normal both running none");
test_computed_value("animation", "paused", "0s ease 0s 1 normal none paused none");
test_computed_value("animation", "none", "0s ease 0s 1 normal none running none");
test_computed_value("animation", "anim", "0s ease 0s 1 normal none running anim");
test_computed_value("animation", "4", "auto ease 0s 4 normal none running none");
test_computed_value("animation", "reverse", "auto ease 0s 1 reverse none running none");
test_computed_value("animation", "both", "auto ease 0s 1 normal both running none");
test_computed_value("animation", "paused", "auto ease 0s 1 normal none paused none");
test_computed_value("animation", "none", "auto ease 0s 1 normal none running none");
test_computed_value("animation", "anim", "auto ease 0s 1 normal none running anim");
test_computed_value("animation", "anim paused both reverse 4 1s -3s cubic-bezier(0, -2, 1, 3)",
"1s cubic-bezier(0, -2, 1, 3) -3s 4 reverse both paused anim");
test_computed_value("animation", "anim paused both reverse, 4 1s -3s cubic-bezier(0, -2, 1, 3)",
"0s ease 0s 1 reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4 normal none running none");
"auto ease 0s 1 reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4 normal none running none");
// TODO: Add test with a single timing-function keyword.
</script>

View file

@ -26,7 +26,7 @@ test_shorthand_value('animation', 'anim paused both reverse 4 1s -3s cubic-bezie
});
test_shorthand_value('animation', 'anim paused both reverse, 4 1s -3s cubic-bezier(0, -2, 1, 3)', {
'animation-duration': '0s, 1s',
'animation-duration': 'auto, 1s',
'animation-timing-function': 'ease, cubic-bezier(0, -2, 1, 3)',
'animation-delay': '0s, -3s',
'animation-iteration-count': '1, 4',
@ -40,7 +40,7 @@ test_shorthand_value('animation', 'anim paused both reverse, 4 1s -3s cubic-bezi
});
test_shorthand_value('animation', '4 1s -3s cubic-bezier(0, -2, 1, 3), anim paused both reverse', {
'animation-duration': '1s, 0s',
'animation-duration': '1s, auto',
'animation-timing-function': 'cubic-bezier(0, -2, 1, 3), ease',
'animation-delay': '-3s, 0s',
'animation-iteration-count': '4, 1',

View file

@ -1,25 +0,0 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation">
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
<script>
// TODO(https://github.com/w3c/csswg-drafts/issues/8054): When support for
// animation-delay-start and -end is added to the animation shorthand, this
// file should just merge with animation-shorthand.html.
test_shorthand_value('animation', 'anim paused both reverse 4 1s -3s cubic-bezier(0, -2, 1, 3)', {
'animation-duration': '1s',
'animation-timing-function': 'cubic-bezier(0, -2, 1, 3)',
'animation-delay-start': '-3s',
'animation-delay-end': '0s',
'animation-iteration-count': '4',
'animation-direction': 'reverse',
'animation-fill-mode': 'both',
'animation-play-state': 'paused',
'animation-name': 'anim',
'animation-timeline': 'auto',
'animation-range-start': 'normal',
'animation-range-end': 'normal',
});
</script>

View file

@ -16,20 +16,20 @@
// <single-animation-fill-mode> || <single-animation-play-state> ||
// [ none | <keyframes-name> ]
test_valid_value("animation", "1s", ["1s", "1s ease 0s 1 normal none running none"]);
test_valid_value("animation", "cubic-bezier(0, -2, 1, 3)", ["cubic-bezier(0, -2, 1, 3)", "0s cubic-bezier(0, -2, 1, 3) 0s 1 normal none running none"]);
test_valid_value("animation", "cubic-bezier(0, -2, 1, 3)", ["cubic-bezier(0, -2, 1, 3)", "auto cubic-bezier(0, -2, 1, 3) 0s 1 normal none running none"]);
test_valid_value("animation", "1s -3s", ["1s -3s", "1s ease -3s 1 normal none running none"]);
test_valid_value("animation", "4", ["4", "0s ease 0s 4 normal none running none"]);
test_valid_value("animation", "reverse", ["reverse", "0s ease 0s 1 reverse none running none"]);
test_valid_value("animation", "both", ["both", "0s ease 0s 1 normal both running none"]);
test_valid_value("animation", "paused", ["paused", "0s ease 0s 1 normal none paused none"]);
test_valid_value("animation", "none", ["0s", "none", "0s ease 0s 1 normal none running none"]);
test_valid_value("animation", "anim", ["anim", "0s ease 0s 1 normal none running anim"]);
test_valid_value("animation", "4", ["4", "auto ease 0s 4 normal none running none"]);
test_valid_value("animation", "reverse", ["reverse", "auto ease 0s 1 reverse none running none"]);
test_valid_value("animation", "both", ["both", "auto ease 0s 1 normal both running none"]);
test_valid_value("animation", "paused", ["paused", "auto ease 0s 1 normal none paused none"]);
test_valid_value("animation", "none", ["auto", "none", "auto ease 0s 1 normal none running none"]);
test_valid_value("animation", "anim", ["anim", "auto ease 0s 1 normal none running anim"]);
test_valid_value("animation", "anim paused both reverse 4 1s -3s cubic-bezier(0, -2, 1, 3)",
"1s cubic-bezier(0, -2, 1, 3) -3s 4 reverse both paused anim");
test_valid_value("animation", "anim paused both reverse, 4 1s -3s cubic-bezier(0, -2, 1, 3)",
["reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4", "0s ease 0s 1 reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4 normal none running none"]);
["reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4", "auto ease 0s 1 reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4 normal none running none"]);
// TODO: Add test with a single negative time.
// TODO: Add test with a single timing-function keyword.