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

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

Issue 1262283002: Fix 50% flip handling of CSS Animations using CSS wide keywords (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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/border-image-source-interpolation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-image-slice: 50%;
6 }
4 .target { 7 .target {
5 width: 50px; 8 width: 50px;
6 height: 50px; 9 height: 50px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
9 border: 25px; 12 border: 25px;
10 border-image-source: linear-gradient(45deg, red, blue, green); 13 border-image-source: linear-gradient(45deg, red, blue, green);
14 border-image-slice: 20%;
11 } 15 }
12 .expected { 16 .expected {
13 background-color: green; 17 background-color: green;
14 margin-right: 2px; 18 margin-right: 2px;
15 } 19 }
16 </style> 20 </style>
17 <body> 21 <body>
18 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
19 <script> 23 <script>
20 assertInterpolation({ 24 assertInterpolation({
21 property: 'border-image-slice', 25 property: 'border-image-slice',
26 from: '',
27 to: '10%',
28 }, [
29 {at: -0.3, is: '23%'},
30 {at: 0, is: '20%'},
31 {at: 0.3, is: '17%'},
32 {at: 0.5, is: '15%'},
33 {at: 0.6, is: '14%'},
34 {at: 1, is: '10%'},
35 {at: 1.5, is: '5%'},
36 ]);
37
38 assertInterpolation({
39 property: 'border-image-slice',
40 from: 'initial',
41 to: '10%',
42 }, [
43 {at: -0.3, is: '127%'},
44 {at: 0, is: '100%'},
45 {at: 0.3, is: '73%'},
46 {at: 0.5, is: '55%'},
47 {at: 0.6, is: '46%'},
48 {at: 1, is: '10%'},
49 {at: 1.5, is: '0%'},
50 ]);
51
52 assertInterpolation({
53 property: 'border-image-slice',
54 from: 'inherit',
55 to: '10%',
56 }, [
57 {at: -0.3, is: '62%'},
58 {at: 0, is: '50%'},
59 {at: 0.3, is: '38%'},
60 {at: 0.5, is: '30%'},
61 {at: 0.6, is: '26%'},
62 {at: 1, is: '10%'},
63 {at: 1.5, is: '0%'},
64 ]);
65
66 assertInterpolation({
67 property: 'border-image-slice',
68 from: 'unset',
69 to: '10%',
70 }, [
71 {at: -0.3, is: '127%'},
72 {at: 0, is: '100%'},
73 {at: 0.3, is: '73%'},
74 {at: 0.5, is: '55%'},
75 {at: 0.6, is: '46%'},
76 {at: 1, is: '10%'},
77 {at: 1.5, is: '0%'},
78 ]);
79
80 assertInterpolation({
81 property: 'border-image-slice',
22 from: '0%', 82 from: '0%',
23 to: '50%', 83 to: '50%',
24 }, [ 84 }, [
25 {at: -0.3, is: '0%'}, // CSS border-image-slice can't be negative. 85 {at: -0.3, is: '0%'}, // CSS border-image-slice can't be negative.
26 {at: 0, is: '0%'}, 86 {at: 0, is: '0%'},
27 {at: 0.3, is: '15%'}, 87 {at: 0.3, is: '15%'},
28 {at: 0.5, is: '25%'}, 88 {at: 0.5, is: '25%'},
29 {at: 0.6, is: '30%'}, 89 {at: 0.6, is: '30%'},
30 {at: 1, is: '50%'}, 90 {at: 1, is: '50%'},
31 {at: 1.5, is: '75%'}, 91 {at: 1.5, is: '75%'},
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 {at: 0, is: '0 10 20 30 fill'}, 126 {at: 0, is: '0 10 20 30 fill'},
67 {at: 0.3, is: '12 22 32 42 fill'}, 127 {at: 0.3, is: '12 22 32 42 fill'},
68 {at: 0.5, is: '20 30 40 50 fill'}, 128 {at: 0.5, is: '20 30 40 50 fill'},
69 {at: 0.6, is: '24 34 44 54 fill'}, 129 {at: 0.6, is: '24 34 44 54 fill'},
70 {at: 1, is: '40 50 60 70 fill'}, 130 {at: 1, is: '40 50 60 70 fill'},
71 {at: 1.5, is: '60 70 80 90 fill'}, 131 {at: 1.5, is: '60 70 80 90 fill'},
72 ]); 132 ]);
73 133
74 </script> 134 </script>
75 </body> 135 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/border-image-source-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698