style: Add a test for calc() inside animation-iteration-count.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-24 15:27:25 +02:00
parent dc414134bf
commit aff81aa169
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 25 additions and 0 deletions

View file

@ -306159,6 +306159,12 @@
{}
]
],
"css/css-animations-1/animation-iteration-count-calc.html": [
[
"/css/css-animations-1/animation-iteration-count-calc.html",
{}
]
],
"css/css-animations-1/animationevent-interface.html": [
[
"/css/css-animations-1/animationevent-interface.html",
@ -474190,6 +474196,10 @@
"812d8b618aaf90cf6d772b61d0eaed55848e4c20",
"manual"
],
"css/css-animations-1/animation-iteration-count-calc.html": [
"e7558a046eb2856c666ba51c4208178b24706765",
"testharness"
],
"css/css-animations-1/animation-iteration-event.html": [
"3aec5072660e45e332d5858c8870980d3a8db966",
"manual"

View file

@ -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>