summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/animate-duration.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/manual-tests/animate-duration.html
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/manual-tests/animate-duration.html')
-rw-r--r--WebCore/manual-tests/animate-duration.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/WebCore/manual-tests/animate-duration.html b/WebCore/manual-tests/animate-duration.html
new file mode 100644
index 0000000..d8bf81e
--- /dev/null
+++ b/WebCore/manual-tests/animate-duration.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Overriding Animations</title>
+ <script src="../../shared/javascript/utils.js" type="text/javascript" charset="utf-8"></script>
+ <style type="text/css" media="screen">
+
+ .container {
+ position: relative;
+ width: 400px;
+ height: 120px;
+ border: 1px solid black;
+ margin: 10px;
+ }
+ .box {
+ position: relative;
+ width: 100px;
+ height: 100px;
+ margin: 10px;
+ background-color: blue;
+ z-index: 0;
+ -webkit-animation-name: "slide";
+ -webkit-animation-duration: 1s;
+ -webkit-animation-direction: alternate;
+ -webkit-animation-timing-function: ease-in-out;
+ -webkit-animation-iteration-count: infinite;
+ }
+
+ .one {
+ -webkit-animation-duration: 0s;
+ }
+
+ .two {
+ -webkit-animation-duration: 0;
+ }
+
+ @-webkit-keyframes slide {
+ from { -webkit-transform: translateX(0); }
+ to { -webkit-transform: translateX(280px); }
+ }
+
+ </style>
+</head>
+<body>
+ <p>Single anim (should keep animating)</p>
+ <div class="container" onclick="toggleClassName(this, 'highlighted')">
+ <div class="box none">
+ </div>
+ </div>
+ <p>duration: "0s" (should not animate)</p>
+ <div class="container" onclick="toggleClassName(this, 'highlighted')">
+ <div class="box one">
+ </div>
+ </div>
+ <p>duration: "0" (should animate since inherits valid duration)</p>
+ <div class="container" onclick="toggleClassName(this, 'highlighted')">
+ <div class="box two">
+ </div>
+ </div>
+
+</body>
+</html> \ No newline at end of file