mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
93 lines
No EOL
4.2 KiB
HTML
93 lines
No EOL
4.2 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 zero.</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="When animation-iteration-count is set to zero NO animation is seen.">
|
|
<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: absolute;
|
|
left: 0px;
|
|
|
|
-webkit-animation-name: sample;
|
|
-webkit-animation-iteration-count: 0;
|
|
-webkit-animation-duration: 10s;
|
|
|
|
-moz-animation-name: sample;
|
|
-moz-animation-iteration-count: 0;
|
|
-moz-animation-duration: 10s;
|
|
|
|
animation-name: sample;
|
|
animation-iteration-count: 0;
|
|
animation-duration: 10s;
|
|
}
|
|
.def {
|
|
position: absolute;
|
|
background-color: red;
|
|
width: 100px;
|
|
height: 100px;
|
|
padding: 0.2em 1em;
|
|
margin: 6em;
|
|
left: 0px;
|
|
z-index: -1;
|
|
}
|
|
/* */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="testdetails">
|
|
<p>
|
|
Assertion: When animation-iteration-count is set to zero NO animation is seen.
|
|
</p>
|
|
<ul>
|
|
<li>PASS if a blue colored Box with text "CSS3 Testing Content" appears below and NO movement/animation is seen. Also, RED color should NOT be seen anywhere on this page.</li>
|
|
<li>FAIL if the box animates to left OR if RED color is seen anywhere on this page.</li>
|
|
</ul>
|
|
</p>
|
|
<div class="abc">
|
|
CSS3 Testing Content
|
|
</div>
|
|
<div class="def">
|
|
Reference
|
|
</div>
|
|
</body>
|
|
</html> |