mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
79 lines
No EOL
4.1 KiB
HTML
79 lines
No EOL
4.1 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 : animation-timing-function set to cubic-bezier with parameters (0,0,1,1). </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-timing-function-property" />
|
|
<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="author" title="Nokia Inc." href="http://www.nokia.com/" />
|
|
<meta name="flags" content="animated" />
|
|
<meta name="assert" content="To verify that: when animation-timing-function is set to cubic-bezier with parameters (0,0,1,1) animation is rendered with constant speed from begining till end." />
|
|
<style type="text/css">
|
|
/* <![CDATA[ */
|
|
@-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;
|
|
|
|
-webkit-animation-name: sample;
|
|
-webkit-animation-duration: 10s;
|
|
-webkit-animation-timing-function: cubic-bezier(0,0,1,1);
|
|
|
|
-moz-animation-name: sample;
|
|
-moz-animation-duration: 10s;
|
|
-moz-animation-timing-function: cubic-bezier(0,0,1,1);
|
|
|
|
animation-name: sample;
|
|
animation-duration: 10s;
|
|
animation-timing-function: cubic-bezier(0,0,1,1);
|
|
}
|
|
/* ]]> */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="testdetails">
|
|
<p>
|
|
Assertion: To verify that: when animation-timing-function is set to cubic-bezier with parameters (0,0,1,1) (this is same as setting time function to linear); animation is rendered with constant speed from begining till end.
|
|
</p>
|
|
<ul>
|
|
<li>PASS if blue box with text "CSS3 Testing Content" moves from right to left with constant speed</li>
|
|
<li>FAIL if box is moved with accelerated/decelerated speed OR fails to move left(no animation).</li>
|
|
</ul>
|
|
</p>
|
|
<div class="abc">
|
|
CSS3 Testing Content
|
|
</div>
|
|
</body>
|
|
</html> |