Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: LayoutTests/animations/first-letter-animation.html

Issue 10696154: Merge 120639 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/animations/first-letter-animation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/first-letter-animation.html
===================================================================
--- LayoutTests/animations/first-letter-animation.html (revision 122239)
+++ LayoutTests/animations/first-letter-animation.html (working copy)
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<style type="text/css" media="screen">
- .box {
- position: relative;
- width: 100px;
- height: 100px;
- background: blue;
- -webkit-animation: boxAnimation 0.1s 0.1s linear;
- }
-
- .box::first-letter {
- color: black;
- -webkit-animation: firstLetterAnimation 0.1s 0.2s forwards ease-out;
- }
-
- @-webkit-keyframes firstLetterAnimation {
- from { font-size: 24pt;}
- to { font-size: 40pt;}
- }
-
- @-webkit-keyframes boxAnimation {
- from {
- font-size: 40pt;
- -webkit-transform: rotate(0deg);
- }
- to {
- font-size: 2pt;
- -webkit-transform: rotate(360deg);
- }
- }
-
-</style>
-<script type="text/javascript" charset="utf-8">
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
- }
-
- var result = "Animations test result: <br><br>";
- var animations = 0;
- function animationEnded(event)
- {
- if ((event.animationName == "firstLetterAnimation" || event.animationName == "boxAnimation") &&
- parseFloat(event.elapsedTime).toFixed(2) == 0.1)
- result += "PASS<br>";
- else
- result += "FAIL<br>";
-
- ++animations;
- if (animations == 2) {
- document.getElementById('result').innerHTML = result;
- if (window.layoutTestController)
- layoutTestController.notifyDone();
- }
- }
-
- window.addEventListener("webkitAnimationEnd", animationEnded, false );
-</script>
-</head>
-<body>
- <div class="box">
- Lorem ipsum dolor sit amet.
- </div>
- <div id="result" style="position:absolute; top:150px">
- </div>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/animations/first-letter-animation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698