-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-animations-2] Add testing coverage for
animation-composition
(#…
…32237) Add testing coverage for the `animation-composition` property. Note that this property is not part of the `animation` shorthand property per the current spec.
- Loading branch information
Showing
6 changed files
with
145 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
css/css-animations/parsing/animation-composition-computed.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Animations: getComputedStyle().animationComposition</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#propdef-animation-composition"> | ||
<meta name="assert" content="animation-composition computed value is as specified."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/computed-testcommon.js"></script> | ||
</head> | ||
<body> | ||
<div id="target"></div> | ||
<script> | ||
test_computed_value("animation-composition", "replace, add, accumulate"); | ||
</script> | ||
</body> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
css/css-animations/parsing/animation-composition-invalid.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Animations: parsing animation-composition with invalid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#propdef-animation-composition"> | ||
<meta name="assert" content="animation-composition supports only the grammar '<single-animation-composition> #'."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
test_invalid_value("animation-composition", "auto"); | ||
test_invalid_value("animation-composition", "add replace"); | ||
|
||
test_invalid_value("animation-composition", "add, initial"); | ||
test_invalid_value("animation-composition", "initial, add"); | ||
</script> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
css/css-animations/parsing/animation-composition-valid.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>CSS Animations: parsing animation-composition with valid values</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#propdef-animation-composition"> | ||
<meta name="assert" content="animation-composition supports the full grammar '<single-animation-composition> #'."> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
test_valid_value("animation-composition", "replace"); | ||
test_valid_value("animation-composition", "add"); | ||
test_valid_value("animation-composition", "accumulate"); | ||
test_valid_value("animation-composition", "replace, add, accumulate"); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters