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

Side by Side Diff: LayoutTests/animations/interpolation/border-color-interpolation.html

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent {
5 border-color: white;
6 }
4 .target { 7 .target {
5 width: 50px; 8 width: 50px;
6 height: 50px; 9 height: 50px;
7 background-color: black; 10 background-color: blue;
8 display: inline-block; 11 display: inline-block;
9 border: 12px solid white; 12 border: 12px solid;
13 border-color: darkblue;
10 } 14 }
11 .expected { 15 .expected {
12 background-color: green; 16 background-color: green;
13 margin-right: 2px; 17 margin-right: 2px;
14 } 18 }
15 </style> 19 </style>
16 <body> 20 <body>
17 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
18 <script> 22 <script>
19 assertInterpolation({ 23 assertInterpolation({
20 property: 'border-color', 24 property: 'border-color',
25 from: '',
26 to: 'orange',
27 }, [
28 {at: -0.3, is: 'rgb(0, 0, 181)'},
29 {at: 0, is: 'rgb(0, 0, 139)'},
30 {at: 0.3, is: 'rgb(77, 50, 97)'},
31 {at: 0.6, is: 'rgb(153, 99, 56)'},
32 {at: 1, is: 'rgb(255, 165, 0)'},
33 {at: 1.5, is: 'rgb(255, 248, 0)'},
34 ]);
35
36 assertInterpolation({
37 property: 'border-color',
38 from: 'initial',
39 to: 'orange',
40 }, [
41 {at: -0.3, is: 'rgb(0, 0, 0)'},
42 {at: 0, is: 'rgb(0, 0, 0)'},
43 {at: 0.3, is: 'rgb(77, 50, 0)'},
44 {at: 0.6, is: 'rgb(153, 99, 0)'},
45 {at: 1, is: 'rgb(255, 165, 0)'},
46 {at: 1.5, is: 'rgb(255, 248, 0)'},
47 ]);
48
49 assertInterpolation({
50 property: 'border-color',
51 from: 'inherit',
52 to: 'orange',
53 }, [
54 {at: -0.3, is: 'rgb(255, 255, 255)'},
55 {at: 0, is: 'rgb(255, 255, 255)'},
56 {at: 0.3, is: 'rgb(255, 228, 179)'},
57 {at: 0.6, is: 'rgb(255, 201, 102)'},
58 {at: 1, is: 'rgb(255, 165, 0)'},
59 {at: 1.5, is: 'rgb(255, 120, 0)'},
60 ]);
61
62 assertInterpolation({
63 property: 'border-color',
64 from: 'unset',
65 to: 'orange',
66 }, [
67 {at: -0.3, is: 'rgb(0, 0, 0)'},
68 {at: 0, is: 'rgb(0, 0, 0)'},
69 {at: 0.3, is: 'rgb(77, 50, 0)'},
70 {at: 0.6, is: 'rgb(153, 99, 0)'},
71 {at: 1, is: 'rgb(255, 165, 0)'},
72 {at: 1.5, is: 'rgb(255, 248, 0)'},
73 ]);
74
75 assertInterpolation({
76 property: 'border-color',
21 from: 'white', 77 from: 'white',
22 to: 'orange' 78 to: 'orange'
23 }, [ 79 }, [
24 {at: -0.3, is: 'white'}, 80 {at: -0.3, is: 'white'},
25 {at: 0, is: 'white'}, 81 {at: 0, is: 'white'},
26 {at: 0.3, is: 'rgb(255, 228, 179)'}, 82 {at: 0.3, is: 'rgb(255, 228, 179)'},
27 {at: 0.6, is: 'rgb(255, 201, 102)'}, 83 {at: 0.6, is: 'rgb(255, 201, 102)'},
28 {at: 1, is: 'orange'}, 84 {at: 1, is: 'orange'},
29 {at: 1.5, is: 'rgb(255, 120, 0)'}, 85 {at: 1.5, is: 'rgb(255, 120, 0)'},
30 ]); 86 ]);
31 </script> 87 </script>
32 </body> 88 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698