aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-animations/parsing
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-animations/parsing')
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-computed.html3
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-invalid.html3
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-valid.html3
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-shorthand.html18
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-computed.html3
-rw-r--r--tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-valid.html3
6 files changed, 30 insertions, 3 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-computed.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-computed.html
index 914d496458e..4c96ee81b17 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-computed.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-computed.html
@@ -12,6 +12,9 @@ test_computed_value("animation-range-end", "cover 100%", "cover");
test_computed_value("animation-range-end", "COVER 0%", "cover 0%");
test_computed_value("animation-range-end", "COVER 100%", "cover");
test_computed_value("animation-range-end", "cover 120%");
+test_computed_value("animation-range-end", "0", "0px");
+test_computed_value("animation-range-end", "120%");
+test_computed_value("animation-range-end", "120px");
test_computed_value("animation-range-end", "cover 42%");
test_computed_value("animation-range-end", "cover -42%");
test_computed_value("animation-range-end", "contain 42%");
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-invalid.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-invalid.html
index ec28da2fff1..459cdfd0cd2 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-invalid.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-invalid.html
@@ -5,11 +5,8 @@
<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");
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-valid.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-valid.html
index 4a248f3b224..aeeb2ee5794 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-valid.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-end-valid.html
@@ -10,6 +10,9 @@ test_valid_value("animation-range-end", "cover 0%");
test_valid_value("animation-range-end", "cover 100%", "cover");
test_valid_value("animation-range-end", "cover 120%");
test_valid_value("animation-range-end", "cover 42%");
+test_valid_value("animation-range-end", "0", "0px");
+test_valid_value("animation-range-end", "120%");
+test_valid_value("animation-range-end", "120px");
test_valid_value("animation-range-end", "cover -42%");
test_valid_value("animation-range-end", "contain 42%");
test_valid_value("animation-range-end", "exit 42%");
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-shorthand.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-shorthand.html
index e5f6e866204..8acf0b1c557 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-shorthand.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-shorthand.html
@@ -40,6 +40,11 @@ test_valid_value("animation-range", "exit calc(10% + 50px)");
test_valid_value("animation-range", "entry 50% exit 50%");
test_valid_value("animation-range",
"cover 50% entry 50%, contain 50% exit 50%");
+test_valid_value("animation-range", "50% exit 50%");
+test_valid_value("animation-range", "normal 100px");
+test_valid_value("animation-range", "100px");
+test_valid_value("animation-range", "100px normal", "100px");
+test_valid_value("animation-range", "10% normal", "10%");
test_computed_value("animation-range", "normal");
test_computed_value("animation-range", "normal normal", "normal");
@@ -75,6 +80,11 @@ test_computed_value("animation-range",
"cover 50% entry 50%, contain 50% exit 50%");
test_computed_value("animation-range", "entry 10em exit 20em", "entry 100px exit 200px");
+test_computed_value("animation-range", "10em exit 20em", "100px exit 200px");
+test_computed_value("animation-range", "normal 100px");
+test_computed_value("animation-range", "100px");
+test_computed_value("animation-range", "100px normal", "100px");
+test_computed_value("animation-range", "10% normal", "10%");
test_invalid_value("animation-range", "entry 50% 0s", "entry 50%");
test_invalid_value("animation-range", "0s entry 50%");
@@ -157,4 +167,12 @@ test_shorthand_value('animation-range', 'exit calc(10% + 50px)', {
'animation-range-start': 'exit calc(10% + 50px)',
'animation-range-end': 'exit',
});
+test_shorthand_value('animation-range', '100px', {
+ 'animation-range-start': '100px',
+ 'animation-range-end': 'normal',
+});
+test_shorthand_value('animation-range', '10%', {
+ 'animation-range-start': '10%',
+ 'animation-range-end': 'normal',
+});
</script>
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-computed.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-computed.html
index 9750fb50a39..044aea2ca67 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-computed.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-computed.html
@@ -13,6 +13,9 @@ test_computed_value("animation-range-start", "COVER 0%", "cover");
test_computed_value("animation-range-start", "COVER 100%", "cover 100%");
test_computed_value("animation-range-start", "cover 120%");
test_computed_value("animation-range-start", "cover 42%");
+test_computed_value("animation-range-start", "0", "0px");
+test_computed_value("animation-range-start", "120%");
+test_computed_value("animation-range-start", "120px");
test_computed_value("animation-range-start", "cover -42%");
test_computed_value("animation-range-start", "contain 42%");
test_computed_value("animation-range-start", "exit 42%");
diff --git a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-valid.html b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-valid.html
index d70a371db6f..309f4ccf697 100644
--- a/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-valid.html
+++ b/tests/wpt/web-platform-tests/css/css-animations/parsing/animation-range-start-valid.html
@@ -10,6 +10,9 @@ test_valid_value("animation-range-start", "cover 0%", "cover");
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", "0", "0px");
+test_valid_value("animation-range-start", "120%");
+test_valid_value("animation-range-start", "120px");
test_valid_value("animation-range-start", "cover -42%");
test_valid_value("animation-range-start", "contain 42%");
test_valid_value("animation-range-start", "exit 42%");