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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/outline-width-interpolation.html

Issue 1881333002: Use neutralKeyframe sentinal instead of '' for interpolation-test.js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix composition test code Created 4 years, 8 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 outline: solid transparent; 5 outline: solid transparent;
6 outline-width: 30px; 6 outline-width: 30px;
7 } 7 }
8 .target { 8 .target {
9 width: 50px; 9 width: 50px;
10 height: 50px; 10 height: 50px;
11 background-color: black; 11 background-color: black;
12 display: inline-block; 12 display: inline-block;
13 margin: 18px; 13 margin: 18px;
14 outline: solid orange; 14 outline: solid orange;
15 outline-width: 10px; 15 outline-width: 10px;
16 opacity: 0.5; 16 opacity: 0.5;
17 } 17 }
18 .expected { 18 .expected {
19 background-color: green; 19 background-color: green;
20 } 20 }
21 </style> 21 </style>
22 <body> 22 <body>
23 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
24 <script> 24 <script>
25 assertInterpolation({ 25 assertInterpolation({
26 property: 'outline-width', 26 property: 'outline-width',
27 from: '', 27 from: neutralKeyframe,
28 to: '20px', 28 to: '20px',
29 }, [ 29 }, [
30 {at: -0.3, is: '7px'}, 30 {at: -0.3, is: '7px'},
31 {at: 0, is: '10px'}, 31 {at: 0, is: '10px'},
32 {at: 0.3, is: '13px'}, 32 {at: 0.3, is: '13px'},
33 {at: 0.6, is: '16px'}, 33 {at: 0.6, is: '16px'},
34 {at: 1, is: '20px'}, 34 {at: 1, is: '20px'},
35 {at: 1.5, is: '25px'}, 35 {at: 1.5, is: '25px'},
36 ]); 36 ]);
37 37
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 {at: -2, is: '0px'}, // CSS outline-width can't be negative. 95 {at: -2, is: '0px'}, // CSS outline-width can't be negative.
96 {at: -0.3, is: '2px'}, 96 {at: -0.3, is: '2px'},
97 {at: 0, is: '5px'}, 97 {at: 0, is: '5px'},
98 {at: 0.3, is: '8px'}, 98 {at: 0.3, is: '8px'},
99 {at: 0.6, is: '11px'}, 99 {at: 0.6, is: '11px'},
100 {at: 1, is: '15px'}, 100 {at: 1, is: '15px'},
101 {at: 1.5, is: '20px'} 101 {at: 1.5, is: '20px'}
102 ]); 102 ]);
103 </script> 103 </script>
104 </body> 104 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698