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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/animation-transition-collision-crash.html

Issue 2575423002: CSS Animations: Reformat animation-transition-collision-crash.html (Closed)
Patch Set: style Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html>
2 <meta charset="utf-8">
1 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
3 <style> 5 <style>
4 @keyframes test { 6 @keyframes test {
5 from { 7 from {
6 /* These properties have -webkit-* equivalents. */ 8 /* These properties have -webkit-* equivalents. */
7 background-size: 10px 10px; 9 background-size: 10px 10px;
8 box-shadow: 10px 10px green; 10 box-shadow: 10px 10px green;
9 perspective: 10px; 11 perspective: 10px;
10 transform: translate(10px, 10px); 12 transform: translate(10px, 10px);
11 perspective-origin: 10px 10px; 13 perspective-origin: 10px 10px;
12 transform-origin: 10px 10px; 14 transform-origin: 10px 10px;
13 } 15 }
14 } 16 }
15 #target { 17 #target {
16 animation: test 1s; 18 animation: test 1s;
17 transition: all 1s; 19 transition: all 1s;
18 } 20 }
19 </style> 21 </style>
20 <div id="target"></div> 22 <div id="target"></div>
21 <script> 23 <script>
22 var asyncHandle = async_test('Don\'t crash when animating transitioned propertie s'); 24 'use strict';
23 var frameWait = 7; 25 async_test(t => {
24 function frame() { 26 let frameWait = 5;
25 frameWait--; 27 function frame() {
26 if (frameWait) { 28 frameWait--;
27 requestAnimationFrame(frame); 29 if (frameWait) {
28 } else { 30 requestAnimationFrame(frame);
29 asyncHandle.done(); 31 } else {
32 t.done();
33 }
30 } 34 }
31 } 35 requestAnimationFrame(frame);
32 requestAnimationFrame(frame); 36 }, 'Don\'t crash when animating transitioned properties');
33 </script> 37 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698