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

Side by Side Diff: LayoutTests/animations/interpolation/perspective-interpolation.html

Issue 955863002: Support keywords in LengthStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: transitions test with interpolated perspective Created 5 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 display: inline-block; 5 display: inline-block;
6 margin-top: 50px; 6 margin-top: 50px;
7 margin-bottom: 25px; 7 margin-bottom: 25px;
8 } 8 }
9 .transformed { 9 .transformed {
10 width: 50px; 10 width: 50px;
(...skipping 23 matching lines...) Expand all
34 }, [ 34 }, [
35 {at: -20, is: 'none'}, // perspective does not accept 0 or negative values 35 {at: -20, is: 'none'}, // perspective does not accept 0 or negative values
36 {at: -1, is: 'none'}, // perspective does not accept 0 or negative values 36 {at: -1, is: 'none'}, // perspective does not accept 0 or negative values
37 {at: -0.3, is: '35px'}, 37 {at: -0.3, is: '35px'},
38 {at: 0, is: '50px'}, 38 {at: 0, is: '50px'},
39 {at: 0.3, is: '65px'}, 39 {at: 0.3, is: '65px'},
40 {at: 0.6, is: '80px'}, 40 {at: 0.6, is: '80px'},
41 {at: 1, is: '100px'}, 41 {at: 1, is: '100px'},
42 {at: 1.5, is: '125px'} 42 {at: 1.5, is: '125px'}
43 ]); 43 ]);
44
45 assertInterpolation({
46 property: 'perspective',
47 from: '50px',
48 to: 'none'
49 }, [
50 {at: -20, is: '50px'},
51 {at: -1, is: '50px'},
52 {at: -0.3, is: '50px'},
53 {at: 0, is: '50px'},
54 {at: 0.3, is: '50px'},
55 {at: 0.6, is: 'none'},
56 {at: 1, is: 'none'},
57 {at: 1.5, is: 'none'}
58 ]);
44 </script> 59 </script>
45 </body> 60 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698