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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/outline-offset-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 0px; 5 outline: solid 0px;
6 outline-offset: 30px; 6 outline-offset: 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: 40px 0px 0px 40px; 13 margin: 40px 0px 0px 40px;
14 outline: 4px solid orange; 14 outline: 4px solid orange;
15 outline-offset: 10px; 15 outline-offset: 10px;
16 } 16 }
17 .expected { 17 .expected {
18 background-color: green; 18 background-color: green;
19 margin-right: 18px; 19 margin-right: 18px;
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-offset', 26 property: 'outline-offset',
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 }, [ 81 }, [
82 {at: -0.3, is: '-8px'}, 82 {at: -0.3, is: '-8px'},
83 {at: 0, is: '-5px'}, 83 {at: 0, is: '-5px'},
84 {at: 0.3, is: '-2px'}, 84 {at: 0.3, is: '-2px'},
85 {at: 0.6, is: '1px'}, 85 {at: 0.6, is: '1px'},
86 {at: 1, is: '5px'}, 86 {at: 1, is: '5px'},
87 {at: 1.5, is: '10px'}, 87 {at: 1.5, is: '10px'},
88 ]); 88 ]);
89 </script> 89 </script>
90 </body> 90 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698