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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/webkit-mask-box-image-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 -webkit-mask-box-image-width: 30px; 5 -webkit-mask-box-image-width: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 background-color: black; 10 background-color: black;
11 display: inline-block; 11 display: inline-block;
12 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0 , 0, 0, 1)); 12 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0 , 0, 0, 1));
13 -webkit-mask-box-image-width: 10px; 13 -webkit-mask-box-image-width: 10px;
14 } 14 }
15 .expected { 15 .expected {
16 background-color: green; 16 background-color: green;
17 margin-right: 2px; 17 margin-right: 2px;
18 } 18 }
19 </style> 19 </style>
20 <body> 20 <body>
21 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
22 <script> 22 <script>
23 assertInterpolation({ 23 assertInterpolation({
24 property: '-webkit-mask-box-image-width', 24 property: '-webkit-mask-box-image-width',
25 from: '', 25 from: neutralKeyframe,
26 to: '20px', 26 to: '20px',
27 }, [ 27 }, [
28 {at: -0.3, is: '7px'}, 28 {at: -0.3, is: '7px'},
29 {at: 0, is: '10px'}, 29 {at: 0, is: '10px'},
30 {at: 0.3, is: '13px'}, 30 {at: 0.3, is: '13px'},
31 {at: 0.6, is: '16px'}, 31 {at: 0.6, is: '16px'},
32 {at: 1, is: '20px'}, 32 {at: 1, is: '20px'},
33 {at: 1.5, is: '25px'}, 33 {at: 1.5, is: '25px'},
34 {at: 5, is: '60px'}, 34 {at: 5, is: '60px'},
35 {at: 10, is: '110px'}, 35 {at: 10, is: '110px'},
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 {at: 0, is: '0'}, 85 {at: 0, is: '0'},
86 {at: 0.3, is: '6'}, 86 {at: 0.3, is: '6'},
87 {at: 0.6, is: '12'}, 87 {at: 0.6, is: '12'},
88 {at: 1, is: '20'}, 88 {at: 1, is: '20'},
89 {at: 1.5, is: '30'}, 89 {at: 1.5, is: '30'},
90 {at: 5, is: '100'}, 90 {at: 5, is: '100'},
91 {at: 10, is: '200'} 91 {at: 10, is: '200'}
92 ]); 92 ]);
93 </script> 93 </script>
94 </body> 94 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698