forked from mirrors/gecko-dev
Automatic update from web-platform-tests[css-animations] animation-duration computed value (#13819) Durations are serialized in seconds. https://drafts.csswg.org/css-values-4/#time -- wpt-commits: e92093981dfdba5154fd8c41021f2bf99751e67b wpt-pr: 13819
20 lines
705 B
HTML
20 lines
705 B
HTML
<!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>
|