servo/tests/wpt/css-tests/css-animations-1_dev/xhtml1/animation-name-003.xht

89 lines
No EOL
3.9 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-name set to none</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="author" title="Nokia Inc." href="http://www.nokia.com/" />
<meta name="flags" content="animated" />
<meta name="assert" content="To verify that NO animation is seen when animation-name is set to none." />
<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;
left: 0px;
padding: 0.2em 1em;
margin: 6em;
position: absolute;
-webkit-animation-name: none;
-webkit-animation-duration: 10s;
-moz-animation-name: none;
-moz-animation-duration: 10s;
animation-name: none;
animation-duration: 10s;
}
.def {
position: absolute;
background-color: red;
left: 0px;
width: 100px;
height: 100px;
padding: 0.2em 1em;
margin: 6em;
z-index: -1;
}
/* ]]> */
</style>
</head>
<body>
<p id="testdetails">
<p>
Assertion: To verify that NO animation is seen when animation-name is set to none.
</p>
<ul>
<li>PASS if a blue colored box with text "CSS3 Testing Content" inside it appears below and box should not animate/move towards left. Also no red should be visible on this page.</li>
<li>FAIL if box moves to left or some animation is observed or if red is visible.</li>
</ul>
</p>
<div class="abc">
CSS3 Testing Content
</div>
<div class="def">
Reference
</div>
</body>
</html>