commit 89854db86c4bd61cbbd41e3a90946e271319ef86
parent 98c8f12ef7fcca004be3834f8677a177046b901e
Author: Sam Weinig <sam@webkit.org>
Date: Mon, 5 Jan 2026 10:22:03 +0000
Bug 2007748 [wpt PR 56926] - Update css/css-animations/parsing/keyframe-selectors.html to allow calc() in keyframe selectors, a=testonly
Automatic update from web-platform-tests
Update css/css-animations/parsing/keyframe-selectors.html to allow calc() in keyframe selectors (#56926)
The keyframe selector grammar allows the use of calc() via the usage
of the <percentage> production. This updates the test, changing the
calc() usages from invalid to valid.
--
wpt-commits: 32c412f351c88a6d02e125e68d5851e44e8262ff
wpt-pr: 56926
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/testing/web-platform/tests/css/css-animations/parsing/keyframe-selectors.html b/testing/web-platform/tests/css/css-animations/parsing/keyframe-selectors.html
@@ -34,12 +34,12 @@
test_valid_keyframe_selector("to");
test_valid_keyframe_selector("entry 10%");
test_valid_keyframe_selector("exit 60%");
+ test_valid_keyframe_selector("calc(10%)");
+ test_valid_keyframe_selector("calc(10% * sibling-index())");
+ test_valid_keyframe_selector("calc(10% * sign(1em - 1px))");
+ test_valid_keyframe_selector("entry calc(10%)");
+ test_valid_keyframe_selector("exit calc(60%)");
test_invalid_keyframe_selector("-10%");
test_invalid_keyframe_selector("120%");
- test_invalid_keyframe_selector("calc(10%)");
- test_invalid_keyframe_selector("calc(10% * sibling-index())");
- test_invalid_keyframe_selector("calc(10% * sign(1em - 1px))");
- test_invalid_keyframe_selector("entry calc(10%)");
- test_invalid_keyframe_selector("exit calc(60%)");
</script>