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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-text-stroke-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 -webkit-text-stroke-color: blue;
6 }
4 .target { 7 .target {
5 display: inline-block; 8 display: inline-block;
6 font: 60pt sans-serif; 9 font: 60pt sans-serif;
7 -webkit-text-stroke: 3px black; 10 -webkit-text-stroke: 3px orange;
8 -webkit-text-fill-color: white; 11 -webkit-text-fill-color: white;
9 } 12 }
10 .expected { 13 .expected {
11 margin-right: 15px; 14 margin-right: 15px;
12 } 15 }
13 </style> 16 </style>
14 <body> 17 <body>
15 <template id="target-template">T</template> 18 <template id="target-template">T</template>
16 <script src="resources/interpolation-test.js"></script> 19 <script src="resources/interpolation-test.js"></script>
17 <script> 20 <script>
18 assertInterpolation({ 21 assertInterpolation({
19 property: '-webkit-text-stroke-color', 22 property: '-webkit-text-stroke-color',
23 from: '',
24 to: 'green',
25 }, [
26 {at: -0.3, is: 'rgb(255, 176, 0)'},
27 {at: 0, is: 'rgb(255, 165, 0)'},
28 {at: 0.3, is: 'rgb(179, 154, 0)'},
29 {at: 0.6, is: 'rgb(102, 143, 0)'},
30 {at: 1, is: 'rgb(0, 128, 0)'},
31 {at: 1.5, is: 'rgb(0, 110, 0)'},
32 ]);
33
34 assertInterpolation({
35 property: '-webkit-text-stroke-color',
36 from: 'initial',
37 to: 'green',
38 }, [
39 {at: -0.3, is: 'rgb(0, 0, 0)'},
40 {at: 0, is: 'rgb(0, 0, 0)'},
41 {at: 0.3, is: 'rgb(0, 38, 0)'},
42 {at: 0.6, is: 'rgb(0, 77, 0)'},
43 {at: 1, is: 'rgb(0, 128, 0)'},
44 {at: 1.5, is: 'rgb(0, 192, 0)'},
45 ]);
46
47 assertInterpolation({
48 property: '-webkit-text-stroke-color',
49 from: 'inherit',
50 to: 'green',
51 }, [
52 {at: -0.3, is: 'rgb(0, 0, 255)'},
53 {at: 0, is: 'rgb(0, 0, 255)'},
54 {at: 0.3, is: 'rgb(0, 38, 179)'},
55 {at: 0.6, is: 'rgb(0, 77, 102)'},
56 {at: 1, is: 'rgb(0, 128, 0)'},
57 {at: 1.5, is: 'rgb(0, 192, 0)'},
58 ]);
59
60 assertInterpolation({
61 property: '-webkit-text-stroke-color',
62 from: 'unset',
63 to: 'green',
64 }, [
65 {at: -0.3, is: 'rgb(0, 0, 255)'},
66 {at: 0, is: 'rgb(0, 0, 255)'},
67 {at: 0.3, is: 'rgb(0, 38, 179)'},
68 {at: 0.6, is: 'rgb(0, 77, 102)'},
69 {at: 1, is: 'rgb(0, 128, 0)'},
70 {at: 1.5, is: 'rgb(0, 192, 0)'},
71 ]);
72
73 assertInterpolation({
74 property: '-webkit-text-stroke-color',
20 from: 'black', 75 from: 'black',
21 to: 'orange' 76 to: 'orange'
22 }, [ 77 }, [
23 {at: -0.3, is: 'black'}, 78 {at: -0.3, is: 'black'},
24 {at: 0, is: 'black'}, 79 {at: 0, is: 'black'},
25 {at: 0.3, is: 'rgb(77, 50, 0)'}, 80 {at: 0.3, is: 'rgb(77, 50, 0)'},
26 {at: 0.6, is: 'rgb(153, 99, 0)'}, 81 {at: 0.6, is: 'rgb(153, 99, 0)'},
27 {at: 1, is: 'orange'}, 82 {at: 1, is: 'orange'},
28 {at: 1.5, is: 'rgb(255, 248, 0)'}, 83 {at: 1.5, is: 'rgb(255, 248, 0)'},
29 ]); 84 ]);
30 </script> 85 </script>
31 </body> 86 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698