-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-animations] animation-duration computed value (#13819)
Durations are serialized in seconds. https://drafts.csswg.org/css-values-4/#time
- Loading branch information
1 parent
96748a7
commit e920939
Showing
3 changed files
with
60 additions
and
0 deletions.
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
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: getComputedValue().animationDelay</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation-delay"> | ||
<meta name="assert" content="animation-delay converts to seconds."> | ||
<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-delay", "-500ms", "-0.5s"); | ||
test_computed_value("animation-delay", "calc(2 * 3s)", "6s"); | ||
test_computed_value("animation-delay", "20s, 10s"); | ||
</script> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
css/css-animations/parsing/animation-duration-computed.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: getComputedValue().animationDuration</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation-duration"> | ||
<meta name="assert" content="animation-duration converts to seconds."> | ||
<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-duration", "500ms", "0.5s"); | ||
test_computed_value("animation-duration", "calc(2 * 3s)", "6s"); | ||
test_computed_value("animation-duration", "20s, 10s"); | ||
</script> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
css/css-transitions/parsing/transition-duration-computed.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 Transitions: getComputedValue().transitionDuration</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-transitions/#propdef-transition-duration"> | ||
<meta name="assert" content="transition-duration converts to seconds."> | ||
<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("transition-duration", "500ms", "0.5s"); | ||
test_computed_value("transition-duration", "calc(2 * 3s)", "6s"); | ||
test_computed_value("transition-duration", "20s, 10s"); | ||
</script> | ||
</body> | ||
</html> |