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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-clip-path-interpolation.html

Issue 200633005: [CSS Shapes] Remove deprecated shapes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test expectations Created 6 years, 9 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 .target { 4 .target {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 } 7 }
8 .active { 8 .active {
9 background-color: green; 9 background-color: green;
10 display: inline-block; 10 display: inline-block;
11 } 11 }
12 12
13 .replica { 13 .replica {
14 background-color: black; 14 background-color: black;
15 display: inline-block; 15 display: inline-block;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 <script src="resources/interpolation-test.js"></script> 19 <script src="resources/interpolation-test.js"></script>
20 <script> 20 <script>
21 assertInterpolation({ 21 assertInterpolation({
22 property: '-webkit-clip-path', 22 property: '-webkit-clip-path',
23 from: 'rectangle(0px, 0px, 100px, 100px, 0px, 0px)', 23 from: 'circle(10px at 25px 75px)',
24 to: 'rectangle(25px, 25px, 50px, 50px, 10px, 10px)' 24 to: 'circle(50px at 50px 50px)'
25 }, [ 25 }, [
26 {at: -0.3, is: 'rectangle(-7.5px, -7.5px, 115px, 115px, 0px, 0px)'}, // radius can't be negative 26 {at: -0.3, is: 'circle(0px at 17.5px 82.5px)'}, // radius can't be negative
27 {at: 0, is: 'rectangle(0px, 0px, 100px, 100px)'}, 27 {at: 0, is: 'circle(10px at 25px 75px)'},
28 {at: 0.3, is: 'rectangle(7.5px, 7.5px, 85px, 85px, 3px, 3px)'}, 28 {at: 0.3, is: 'circle(22px at 32.5px 67.5px)'},
29 {at: 0.6, is: 'rectangle(15px, 15px, 70px, 70px, 6px, 6px)'}, 29 {at: 0.6, is: 'circle(34px at 40px 60px)'},
30 {at: 1, is: 'rectangle(25px, 25px, 50px, 50px, 10px, 10px)'}, 30 {at: 1, is: 'circle(50px at 50px 50px)'},
31 {at: 1.5, is: 'rectangle(37.5px, 37.5px, 25px, 25px, 15px, 15px)'} 31 {at: 1.5, is: 'circle(70px at 62.5px 37.5px)'}
32 ]);
33
34 assertInterpolation({
35 property: '-webkit-clip-path',
36 from: 'circle(25px, 75px, 10px)',
37 to: 'circle(50px, 50px, 50px)'
38 }, [
39 {at: -0.3, is: 'circle(17.5px, 82.5px, 0px)'}, // radius can't be negative
40 {at: 0, is: 'circle(25px, 75px, 10px)'},
41 {at: 0.3, is: 'circle(32.5px, 67.5px, 22px)'},
42 {at: 0.6, is: 'circle(40px, 60px, 34px)'},
43 {at: 1, is: 'circle(50px, 50px, 50px)'},
44 {at: 1.5, is: 'circle(62.5px, 37.5px, 70px)'}
45 ]); 32 ]);
46 33
47 assertInterpolation({ 34 assertInterpolation({
48 property: '-webkit-clip-path', 35 property: '-webkit-clip-path',
49 from: 'none', 36 from: 'none',
50 to: 'circle(1px, 2px, 3px)' 37 to: 'circle(3px at 1px 2px)'
51 }, [ 38 }, [
52 {at: -0.3, is: 'none'}, 39 {at: -0.3, is: 'none'},
53 {at: 0, is: 'none'}, 40 {at: 0, is: 'none'},
54 {at: 0.3, is: 'none'}, 41 {at: 0.3, is: 'none'},
55 {at: 0.6, is: 'circle(1px, 2px, 3px)'}, 42 {at: 0.6, is: 'circle(3px at 1px 2px)'},
56 {at: 1, is: 'circle(1px, 2px, 3px)'}, 43 {at: 1, is: 'circle(3px at 1px 2px)'},
57 {at: 1.5, is: 'circle(1px, 2px, 3px)'} 44 {at: 1.5, is: 'circle(3px at 1px 2px)'}
58 ]); 45 ]);
59 </script> 46 </script>
60 </body> 47 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698