Update web-platform-tests to revision b'8a99353217938b6f1da31a9a108da3d501cee58b'

This commit is contained in:
WPT Sync Bot 2023-01-20 01:38:13 +00:00
parent 62ec0f1ec7
commit 92be0baf34
211 changed files with 5373 additions and 2272 deletions

View file

@ -1,12 +1,12 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-start">
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-end">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value("animation-delay-start", "initial", "0s");
test_computed_value("animation-delay-start", "-500ms", "-0.5s");
test_computed_value("animation-delay-start", "calc(2 * 3s)", "6s");
test_computed_value("animation-delay-start", "20s, 10s");
test_computed_value("animation-delay-end", "initial", "0s");
test_computed_value("animation-delay-end", "-500ms", "-0.5s");
test_computed_value("animation-delay-end", "calc(2 * 3s)", "6s");
test_computed_value("animation-delay-end", "20s, 10s");
</script>

View file

@ -1,29 +1,29 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-start">
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-end">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_invalid_value("animation-delay-start", "infinite");
test_invalid_value("animation-delay-start", "0");
test_invalid_value("animation-delay-start", "1s 2s");
test_invalid_value("animation-delay-start", "1s / 2s");
test_invalid_value("animation-delay-start", "100px");
test_invalid_value("animation-delay-start", "100%");
test_invalid_value("animation-delay-end", "infinite");
test_invalid_value("animation-delay-end", "0");
test_invalid_value("animation-delay-end", "1s 2s");
test_invalid_value("animation-delay-end", "1s / 2s");
test_invalid_value("animation-delay-end", "100px");
test_invalid_value("animation-delay-end", "100%");
test_invalid_value("animation-delay-start", "peek 50%");
test_invalid_value("animation-delay-start", "50% contain");
test_invalid_value("animation-delay-start", "50% cover");
test_invalid_value("animation-delay-start", "50% entry");
test_invalid_value("animation-delay-start", "50% enter");
test_invalid_value("animation-delay-start", "50% exit");
test_invalid_value("animation-delay-start", "contain contain");
test_invalid_value("animation-delay-start", "auto");
test_invalid_value("animation-delay-start", "none");
test_invalid_value("animation-delay-start", "cover 50% enter 50%");
test_invalid_value("animation-delay-start", "cover 100px");
test_invalid_value("animation-delay-start", "cover");
test_invalid_value("animation-delay-start", "contain");
test_invalid_value("animation-delay-start", "enter");
test_invalid_value("animation-delay-start", "exit");
test_invalid_value("animation-delay-end", "peek 50%");
test_invalid_value("animation-delay-end", "50% contain");
test_invalid_value("animation-delay-end", "50% cover");
test_invalid_value("animation-delay-end", "50% entry");
test_invalid_value("animation-delay-end", "50% enter");
test_invalid_value("animation-delay-end", "50% exit");
test_invalid_value("animation-delay-end", "contain contain");
test_invalid_value("animation-delay-end", "auto");
test_invalid_value("animation-delay-end", "none");
test_invalid_value("animation-delay-end", "cover 50% enter 50%");
test_invalid_value("animation-delay-end", "cover 100px");
test_invalid_value("animation-delay-end", "cover");
test_invalid_value("animation-delay-end", "contain");
test_invalid_value("animation-delay-end", "enter");
test_invalid_value("animation-delay-end", "exit");
</script>

View file

@ -1,26 +1,11 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-start">
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-end">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_valid_value("animation-delay-start", "-5ms");
test_valid_value("animation-delay-start", "0s");
test_valid_value("animation-delay-start", "10s");
test_valid_value("animation-delay-start", "20s, 10s");
// https://drafts.csswg.org/scroll-animations-1/#view-timelines-ranges
test_valid_value("animation-delay-start", "cover 0%");
test_valid_value("animation-delay-start", "cover 100%");
test_valid_value("animation-delay-start", "cover 120%");
test_valid_value("animation-delay-start", "cover 42%");
test_valid_value("animation-delay-start", "cover -42%");
test_valid_value("animation-delay-start", "contain 42%");
test_valid_value("animation-delay-start", "exit 42%");
test_valid_value("animation-delay-start", "exit 1%, cover 2%, contain 100%");
// There's an open issue in the spec about "enter" vs "entry".
//
// https://drafts.csswg.org/scroll-animations-1/#valdef-animation-timeline-range-entry
test_valid_value("animation-delay-start", "enter 42%");
test_valid_value("animation-delay-end", "-5ms");
test_valid_value("animation-delay-end", "0s");
test_valid_value("animation-delay-end", "10s");
test_valid_value("animation-delay-end", "20s, 10s");
</script>

View file

@ -5,10 +5,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("animation-delay", "1s");
test_valid_value("animation-delay", "-1s");
test_valid_value("animation-delay", "1s 2s");
@ -17,27 +14,6 @@ test_valid_value("animation-delay", "1s 2s, 3s");
test_valid_value("animation-delay", "1s, 2s 3s");
test_valid_value("animation-delay", "1s, 2s, 3s");
test_valid_value("animation-delay", "cover");
test_valid_value("animation-delay", "contain");
test_valid_value("animation-delay", "enter");
test_valid_value("animation-delay", "exit");
test_valid_value("animation-delay", "enter, exit");
test_valid_value("animation-delay", "enter 0% enter 100%", "enter");
test_valid_value("animation-delay", "exit 0% exit 100%", "exit");
test_valid_value("animation-delay", "cover 0% cover 100%", "cover");
test_valid_value("animation-delay", "contain 0% contain 100%", "contain");
test_valid_value("animation-delay", "cover 50%");
test_valid_value("animation-delay", "contain 50%");
test_valid_value("animation-delay", "enter 50%");
test_valid_value("animation-delay", "exit 50%");
test_valid_value("animation-delay", "enter 50% 0s", "enter 50%");
test_valid_value("animation-delay", "0s enter 50%");
test_valid_value("animation-delay", "enter 50% exit 50%");
test_valid_value("animation-delay", "cover 50% enter 50%, contain 50% exit 50%");
test_invalid_value("animation-delay", "1s 2s 3s");
test_invalid_value("animation-delay", "0s, 1s 2s 3s");
test_invalid_value("animation-delay", "1s / 2s");
@ -61,21 +37,6 @@ test_shorthand_value('animation-delay', '1s', {
'animation-delay-end': '0s',
});
test_shorthand_value('animation-delay', 'cover', {
'animation-delay-start': 'cover 0%',
'animation-delay-end': 'cover 100%',
});
test_shorthand_value('animation-delay', 'contain', {
'animation-delay-start': 'contain 0%',
'animation-delay-end': 'contain 100%',
});
test_shorthand_value('animation-delay', 'enter 10% exit 20%', {
'animation-delay-start': 'enter 10%',
'animation-delay-end': 'exit 20%',
});
test_shorthand_value('animation-delay', '1s 2s, 3s 4s', {
'animation-delay-start': '1s, 3s',
'animation-delay-end': '2s, 4s',
@ -85,19 +46,4 @@ test_shorthand_value('animation-delay', '1s 2s, 3s, 4s 5s', {
'animation-delay-start': '1s, 3s, 4s',
'animation-delay-end': '2s, 0s, 5s',
});
test_shorthand_value('animation-delay', 'enter, exit', {
'animation-delay-start': 'enter 0%, exit 0%',
'animation-delay-end': 'enter 100%, exit 100%',
});
test_shorthand_value('animation-delay', 'enter 0%, exit', {
'animation-delay-start': 'enter 0%, exit 0%',
'animation-delay-end': '0s, exit 100%',
});
test_shorthand_value('animation-delay', 'enter 0% 1s, 2s exit 50%', {
'animation-delay-start': 'enter 0%, 2s',
'animation-delay-end': '1s, exit 50%',
});
</script>

View file

@ -8,19 +8,4 @@ test_valid_value("animation-delay-start", "-5ms");
test_valid_value("animation-delay-start", "0s");
test_valid_value("animation-delay-start", "10s");
test_valid_value("animation-delay-start", "20s, 10s");
// https://drafts.csswg.org/scroll-animations-1/#view-timelines-ranges
test_valid_value("animation-delay-start", "cover 0%");
test_valid_value("animation-delay-start", "cover 100%");
test_valid_value("animation-delay-start", "cover 120%");
test_valid_value("animation-delay-start", "cover 42%");
test_valid_value("animation-delay-start", "cover -42%");
test_valid_value("animation-delay-start", "contain 42%");
test_valid_value("animation-delay-start", "exit 42%");
test_valid_value("animation-delay-start", "exit 1%, cover 2%, contain 100%");
// There's an open issue in the spec about "enter" vs "entry".
//
// https://drafts.csswg.org/scroll-animations-1/#valdef-animation-timeline-range-entry
test_valid_value("animation-delay-start", "enter 42%");
</script>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value("animation-range-end", "initial", "auto");
test_computed_value("animation-range-end", "auto");
test_computed_value("animation-range-end", "cover 0%");
test_computed_value("animation-range-end", "COVER 0%", "cover 0%");
test_computed_value("animation-range-end", "cover 100%");
test_computed_value("animation-range-end", "cover 120%");
test_computed_value("animation-range-end", "cover 42%");
test_computed_value("animation-range-end", "cover -42%");
test_computed_value("animation-range-end", "contain 42%");
test_computed_value("animation-range-end", "exit 42%");
test_computed_value("animation-range-end", "exit calc(41% + 1%)", "exit 42%");
test_computed_value("animation-range-end", "exit 1%, cover 2%, contain 100%");
</script>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_invalid_value("animation-range-end", "infinite");
test_invalid_value("animation-range-end", "0");
test_invalid_value("animation-range-end", "1s 2s");
test_invalid_value("animation-range-end", "1s / 2s");
test_invalid_value("animation-range-end", "100px");
test_invalid_value("animation-range-end", "100%");
test_invalid_value("animation-range-end", "peek 50%");
test_invalid_value("animation-range-end", "50% contain");
test_invalid_value("animation-range-end", "50% cover");
test_invalid_value("animation-range-end", "50% entry");
test_invalid_value("animation-range-end", "50% enter");
test_invalid_value("animation-range-end", "50% exit");
test_invalid_value("animation-range-end", "contain contain");
test_invalid_value("animation-range-end", "none");
test_invalid_value("animation-range-end", "cover 50% enter 50%");
test_invalid_value("animation-range-end", "cover 100px");
test_invalid_value("animation-range-end", "cover");
test_invalid_value("animation-range-end", "contain");
test_invalid_value("animation-range-end", "enter");
test_invalid_value("animation-range-end", "exit");
</script>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// https://drafts.csswg.org/scroll-animations-1/#view-timelines-ranges
test_valid_value("animation-range-end", "auto");
test_valid_value("animation-range-end", "cover 0%");
test_valid_value("animation-range-end", "cover 100%");
test_valid_value("animation-range-end", "cover 120%");
test_valid_value("animation-range-end", "cover 42%");
test_valid_value("animation-range-end", "cover -42%");
test_valid_value("animation-range-end", "contain 42%");
test_valid_value("animation-range-end", "exit 42%");
test_valid_value("animation-range-end", "exit 1%, cover 2%, contain 100%");
// There's an open issue in the spec about "enter" vs "entry".
//
// https://drafts.csswg.org/scroll-animations-1/#valdef-animation-timeline-range-entry
test_valid_value("animation-range-end", "enter 42%");
</script>

View file

@ -0,0 +1,74 @@
<!DOCTYPE html>
<title>animation-range shorthand</title>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_valid_value("animation-range", "cover");
test_valid_value("animation-range", "contain");
test_valid_value("animation-range", "enter");
test_valid_value("animation-range", "exit");
test_valid_value("animation-range", "enter, exit");
test_valid_value("animation-range", "enter 0% enter 100%", "enter");
test_valid_value("animation-range", "exit 0% exit 100%", "exit");
test_valid_value("animation-range", "cover 0% cover 100%", "cover");
test_valid_value("animation-range", "contain 0% contain 100%", "contain");
test_valid_value("animation-range", "cover 50%");
test_valid_value("animation-range", "contain 50%");
test_valid_value("animation-range", "enter 50%");
test_valid_value("animation-range", "exit 50%");
test_valid_value("animation-range", "enter 50% exit 50%");
test_valid_value("animation-range", "cover 50% enter 50%, contain 50% exit 50%");
test_invalid_value("animation-range", "enter 50% 0s", "enter 50%");
test_invalid_value("animation-range", "0s enter 50%");
test_invalid_value("animation-range", "1s");
test_invalid_value("animation-range", "-1s");
test_invalid_value("animation-range", "1s 2s");
test_invalid_value("animation-range", "1s, 2s");
test_invalid_value("animation-range", "1s 2s, 3s");
test_invalid_value("animation-range", "1s, 2s 3s");
test_invalid_value("animation-range", "1s, 2s, 3s");
test_invalid_value("animation-range", "1s 2s 3s");
test_invalid_value("animation-range", "0s, 1s 2s 3s");
test_invalid_value("animation-range", "1s / 2s");
test_invalid_value("animation-range", "1s, 2px");
test_invalid_value("animation-range", "#ff0000");
test_invalid_value("animation-range", "red");
test_invalid_value("animation-range", "thing");
test_invalid_value("animation-range", "thing 0%");
test_invalid_value("animation-range", "thing 42%");
test_invalid_value("animation-range", "thing 100%");
test_invalid_value("animation-range", "thing 100px");
test_invalid_value("animation-range", "100% thing");
test_shorthand_value('animation-range', 'cover', {
'animation-range-start': 'cover 0%',
'animation-range-end': 'cover 100%',
});
test_shorthand_value('animation-range', 'contain', {
'animation-range-start': 'contain 0%',
'animation-range-end': 'contain 100%',
});
test_shorthand_value('animation-range', 'enter 10% exit 20%', {
'animation-range-start': 'enter 10%',
'animation-range-end': 'exit 20%',
});
test_shorthand_value('animation-range', 'enter, exit', {
'animation-range-start': 'enter 0%, exit 0%',
'animation-range-end': 'enter 100%, exit 100%',
});
test_shorthand_value('animation-range', 'enter 0%, exit', {
'animation-range-start': 'enter 0%, exit 0%',
'animation-range-end': 'auto, exit 100%',
});
</script>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value("animation-range-start", "initial", "auto");
test_computed_value("animation-range-start", "auto");
test_computed_value("animation-range-start", "cover 0%");
test_computed_value("animation-range-start", "COVER 0%", "cover 0%");
test_computed_value("animation-range-start", "cover 100%");
test_computed_value("animation-range-start", "cover 120%");
test_computed_value("animation-range-start", "cover 42%");
test_computed_value("animation-range-start", "cover -42%");
test_computed_value("animation-range-start", "contain 42%");
test_computed_value("animation-range-start", "exit 42%");
test_computed_value("animation-range-start", "exit calc(41% + 1%)", "exit 42%");
test_computed_value("animation-range-start", "exit 1%, cover 2%, contain 100%");
</script>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test_invalid_value("animation-range-start", "peek 50%");
test_invalid_value("animation-range-start", "50% contain");
test_invalid_value("animation-range-start", "50% cover");
test_invalid_value("animation-range-start", "50% entry");
test_invalid_value("animation-range-start", "50% enter");
test_invalid_value("animation-range-start", "50% exit");
test_invalid_value("animation-range-start", "contain contain");
test_invalid_value("animation-range-start", "none");
test_invalid_value("animation-range-start", "cover 50% enter 50%");
test_invalid_value("animation-range-start", "cover 100px");
test_invalid_value("animation-range-start", "cover");
test_invalid_value("animation-range-start", "contain");
test_invalid_value("animation-range-start", "enter");
test_invalid_value("animation-range-start", "exit");
</script>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// https://drafts.csswg.org/scroll-animations-1/#view-timelines-ranges
test_valid_value("animation-range-start", "auto");
test_valid_value("animation-range-start", "cover 0%");
test_valid_value("animation-range-start", "cover 100%");
test_valid_value("animation-range-start", "cover 120%");
test_valid_value("animation-range-start", "cover 42%");
test_valid_value("animation-range-start", "cover -42%");
test_valid_value("animation-range-start", "contain 42%");
test_valid_value("animation-range-start", "exit 42%");
test_valid_value("animation-range-start", "exit 1%, cover 2%, contain 100%");
// There's an open issue in the spec about "enter" vs "entry".
//
// https://drafts.csswg.org/scroll-animations-1/#valdef-animation-timeline-range-entry
test_valid_value("animation-range-start", "enter 42%");
</script>