mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
93 lines
No EOL
4.7 KiB
HTML
93 lines
No EOL
4.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>CSS Tests: CSS Animations : keyframes specified using percentages or from/to keywords on animation time line.</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/#keyframes" />
|
|
<link rel="author" title="Nokia Inc." href="http://www.nokia.com/" />
|
|
<meta name="flags" content="animated" />
|
|
<meta name="assert" content="To verify that keyframes set using percentages or from/to keywords on animation time line are in effect." />
|
|
<style type="text/css">
|
|
/* <![CDATA[ */
|
|
@-webkit-keyframes sample {
|
|
from {
|
|
background-color: blue;
|
|
}
|
|
30% {
|
|
background-color: green;
|
|
}
|
|
65% {
|
|
background-color: red;
|
|
}
|
|
to {
|
|
background-color: blue;
|
|
}
|
|
}
|
|
|
|
@-moz-keyframes sample {
|
|
from {
|
|
background-color: blue;
|
|
}
|
|
30% {
|
|
background-color: green;
|
|
}
|
|
65% {
|
|
background-color: red;
|
|
}
|
|
to {
|
|
background-color: blue;
|
|
}
|
|
}
|
|
|
|
@keyframes sample {
|
|
from {
|
|
background-color: blue;
|
|
}
|
|
30% {
|
|
background-color: green;
|
|
}
|
|
65% {
|
|
background-color: red;
|
|
}
|
|
to {
|
|
background-color: blue;
|
|
}
|
|
}
|
|
.abc {
|
|
background-color: blue;
|
|
width: 100px;
|
|
height: 100px;
|
|
padding: 0.2em 1em;
|
|
margin: 6em;
|
|
|
|
-webkit-animation-name: sample;
|
|
-webkit-animation-duration: 10s;
|
|
|
|
-moz-animation-name: sample;
|
|
-moz-animation-duration: 10s;
|
|
|
|
animation-name: sample;
|
|
animation-duration: 10s;
|
|
}
|
|
/* ]]> */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="testdetails">
|
|
<p>
|
|
Assertion: To verify that keyframes set using percentages or from/to keywords on animation time line are in effect.
|
|
</p>
|
|
<ul>
|
|
<li>PASS if the color of the box is blue initially on page load and gradually changes in the order: BLUE to GREEN to RED and back to BLUE in 10 seconds</li>
|
|
<li>FAIL if the color of the box is NOT changing in the specified order within a span of 10 seconds.</li>
|
|
</ul>
|
|
</p>
|
|
<div class="abc">
|
|
CSS3 Testing Content
|
|
</div>
|
|
</body>
|
|
</html> |