mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -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": [
|
||||||
[
|
[
|
||||||
"/css/css-animations-1/animationevent-interface.html",
|
"/css/css-animations-1/animationevent-interface.html",
|
||||||
|
@ -474190,6 +474196,10 @@
|
||||||
"812d8b618aaf90cf6d772b61d0eaed55848e4c20",
|
"812d8b618aaf90cf6d772b61d0eaed55848e4c20",
|
||||||
"manual"
|
"manual"
|
||||||
],
|
],
|
||||||
|
"css/css-animations-1/animation-iteration-count-calc.html": [
|
||||||
|
"e7558a046eb2856c666ba51c4208178b24706765",
|
||||||
|
"testharness"
|
||||||
|
],
|
||||||
"css/css-animations-1/animation-iteration-event.html": [
|
"css/css-animations-1/animation-iteration-event.html": [
|
||||||
"3aec5072660e45e332d5858c8870980d3a8db966",
|
"3aec5072660e45e332d5858c8870980d3a8db966",
|
||||||
"manual"
|
"manual"
|
||||||
|
|
|
@ -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