mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Add a test for calc() inside animation-iteration-count.
This commit is contained in:
parent
dc414134bf
commit
aff81aa169
2 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Test: Animation count accepts calc()</title>
|
||||
<link rel="author" name="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-3/#number-value">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-animations/#animation-iteration-count">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="target" style="animation-iteration-count: calc(1 + 3)">
|
||||
<script>
|
||||
test(function() {
|
||||
let target = document.getElementById("target");
|
||||
assert_equals(getComputedStyle(target).animationIterationCount, "4")
|
||||
}, "calc() should be accepted in animation-iteration-count.");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue