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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-animate-rotate.html

Issue 2521163002: CSS Animations: Reduce usage of webkit prefix in layout tests (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <style> 3 <style>
4 @-webkit-keyframes rotate { 4 @keyframes rotate {
5 0% { -webkit-transform: rotate(0deg) } 5 0% { transform: rotate(0deg) }
6 } 6 }
7 7
8 img { 8 img {
9 -webkit-transform: rotate(90deg); 9 transform: rotate(90deg);
10 } 10 }
11 </style> 11 </style>
12 12
13 <!-- The blue sector of the image should be at 3 o'clock (viz., rotated by 90 de g). --> 13 <!-- The blue sector of the image should be at 3 o'clock (viz., rotated by 90 de g). -->
14 <img onload="rotate(this)" width="400px" src="resources/red-at-12-oclock-with-co lor-profile.jpg"> 14 <img onload="rotate(this)" width="400px" src="resources/red-at-12-oclock-with-co lor-profile.jpg">
15 15
16 <script> 16 <script>
17 function rotate(element) { 17 function rotate(element) {
18 if (window.testRunner) 18 if (window.testRunner)
19 setTimeout(function() { testRunner.setColorProfile('sRGB', new Function()) } , 0); 19 setTimeout(function() { testRunner.setColorProfile('sRGB', new Function()) } , 0);
20 20
21 element.addEventListener('webkitAnimationStart', start, false); 21 element.addEventListener('animationstart', start, false);
22 element.addEventListener('webkitAnimationEnd', end, false); 22 element.addEventListener('animationend', end, false);
23 23
24 if (window.testRunner) 24 if (window.testRunner)
25 element.style.cssText += '-webkit-animation: rotate linear 1s'; 25 element.style.cssText += 'animation: rotate linear 1s';
26 else 26 else
27 element.style.cssText += '-webkit-animation: rotate linear 4s'; 27 element.style.cssText += 'animation: rotate linear 4s';
28 } 28 }
29 29
30 function start(event) { 30 function start(event) {
31 if (window.testRunner) 31 if (window.testRunner)
32 setTimeout(function() { testRunner.setColorProfile('colorSpin', new Function ()) }, 100); 32 setTimeout(function() { testRunner.setColorProfile('colorSpin', new Function ()) }, 100);
33 } 33 }
34 34
35 function end(event) { 35 function end(event) {
36 if (window.testRunner) 36 if (window.testRunner)
37 setTimeout(function() { testRunner.notifyDone() }, 0); 37 setTimeout(function() { testRunner.notifyDone() }, 0);
38 } 38 }
39 39
40 if (window.testRunner) { 40 if (window.testRunner) {
41 testRunner.dumpAsTextWithPixelResults(); 41 testRunner.dumpAsTextWithPixelResults();
42 testRunner.waitUntilDone(); 42 testRunner.waitUntilDone();
43 } 43 }
44 </script> 44 </script>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698