Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 185cb65

Browse files
CSS: WPT for animation-name computed value
animation-name computed value is the specified name(s), or none. https://drafts.csswg.org/css-animations/#animation-name Change-Id: I6e602f9fc218d44a40b693a44713ad958330fbb6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1741341 Commit-Queue: Eric Willigers <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/master@{#684765}
1 parent 845b39c commit 185cb65

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CSS Animations: getComputedStyle().animationName</title>
6+
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation-name">
7+
<meta name="assert" content="animation-name computed value is as specified.">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/css/support/computed-testcommon.js"></script>
11+
</head>
12+
<body>
13+
<div id="target"></div>
14+
<script>
15+
test_computed_value("animation-name", 'none');
16+
17+
test_computed_value("animation-name", 'foo');
18+
test_computed_value("animation-name", 'Both');
19+
test_computed_value("animation-name", 'ease-in');
20+
test_computed_value("animation-name", 'infinite');
21+
test_computed_value("animation-name", 'paused');
22+
test_computed_value("animation-name", 'first, second, third');
23+
24+
// TODO: Test strings, after https://github.com/w3c/csswg-drafts/issues/2435
25+
// is resolved.
26+
// Examples that need testing either here or in animation-name-invalid.html :
27+
// '"Initial"', '"initial"', '"None"', '"Default"', '" x "', "1", '" "', '""',
28+
// '"multi word string"', '"---\\22---"'
29+
</script>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)