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

Side by Side Diff: LayoutTests/animations/animation-paused-hardware.html

Issue 159733003: Don't run paused animations on the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add automated test. Created 6 years, 10 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 | « no previous file | LayoutTests/animations/animation-paused-hardware-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>Test that paused composited animations do not animate</title>
5 <style>
6 #box {
7 background-color: coral;
8 height: 100px;
9 width: 100px;
10 opacity: 1.0;
11 -webkit-animation-play-state: paused;
12 -webkit-animation-duration: 0.2s;
13 -webkit-animation-timing-function: linear;
14 -webkit-animation-name: fade;
15 -webkit-animation-fill-mode: forwards;
16 }
17
18 @-webkit-keyframes fade {
19 to { opacity: 0.3; }
20 }
21 </style>
22 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt>
23 <script type="text/javascript">
24 const expectedValues = [
25 // [time, element-id, property, expected-value, tolerance]
26 [0.2, "box", "opacity", 1, 0.002],
27 ];
28
29 const doPixelTest = true;
30 const disablePauseAnimationAPI = true;
31 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest);
32 </script>
33 </head>
34 <body>
35 <div id="box"></div>
36 <div id="result"></div>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/animation-paused-hardware-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698