mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
91 lines
No EOL
4.1 KiB
HTML
91 lines
No EOL
4.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>CSS Tests: CSS Animations. animation-iteration-count set to non-integer.</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-animations/#animation-name-property">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-animations/#animation-duration-property">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-animations/#animation-iteration-count-property">
|
|
<link rel="author" title="Nokia Inc." href="http://www.nokia.com/">
|
|
<meta name="flags" content="animated">
|
|
<meta name="assert" content="Setting animation-iteration-count to non-integer leads animation to end part way.">
|
|
<style type="text/css">
|
|
/* */
|
|
@-webkit-keyframes sample {
|
|
from {
|
|
left: 150px;
|
|
}
|
|
to {
|
|
left: 0px;
|
|
}
|
|
}
|
|
|
|
@-moz-keyframes sample {
|
|
from {
|
|
left: 150px;
|
|
}
|
|
to {
|
|
left: 0px;
|
|
}
|
|
}
|
|
|
|
@keyframes sample {
|
|
from {
|
|
left: 150px;
|
|
}
|
|
to {
|
|
left: 0px;
|
|
}
|
|
}
|
|
.abc {
|
|
background-color: blue;
|
|
width: 100px;
|
|
height: 100px;
|
|
//padding: 0.2em 1em;
|
|
//margin: 6em;
|
|
position: relative;
|
|
left: 0px;
|
|
|
|
-webkit-animation-name: sample;
|
|
-webkit-animation-iteration-count: 3.1;
|
|
-webkit-animation-duration: 10s;
|
|
|
|
-moz-animation-name: sample;
|
|
-moz-animation-iteration-count: 3.1;
|
|
-moz-animation-duration: 10s;
|
|
|
|
animation-name: sample;
|
|
animation-iteration-count: 3.1;
|
|
animation-duration: 10s;
|
|
}
|
|
|
|
.def {
|
|
background-color: green;
|
|
width: 250px;
|
|
height: 10px;
|
|
position: relative;
|
|
left: 0px;
|
|
}
|
|
/* */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="testdetails">
|
|
<p>
|
|
Assertion: Setting animation-iteration-count to non-integer leads animation to end part way.
|
|
</p>
|
|
<ul>
|
|
<li>PASS if a blue colored Box with text "CSS3 Testing Content" animates from right to left along the green bar THRICE (for a span of 10 seconds each) and for the FOURTH time animation appears to break in middle and blue box immediately positions itself to left.</li>
|
|
<li>FAIL if NO animation is seen OR if animation does not end part-way in its FOURth cycle.</li>
|
|
</ul>
|
|
</p>
|
|
<div class="abc">
|
|
CSS3 Testing Content
|
|
</div>
|
|
<div class="def">
|
|
|
|
</div>
|
|
</body>
|
|
</html> |