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

Side by Side Diff: LayoutTests/animations/composition/word-spacing-composition.html

Issue 1243313002: Migrate the remaining CSS properties interpolable as Lengths to LengthInterpolationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add composition tests Created 5 years, 3 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>
4 .target {
5 position: relative;
6 width: 10px;
7 height: 10px;
8 background-color: black;
9 }
10 .expected {
11 background-color: green;
12 }
13 </style>
14 <body> 3 <body>
15 <script src="../interpolation/resources/interpolation-test.js"></script> 4 <script src="../interpolation/resources/interpolation-test.js"></script>
16 <script> 5 <script>
17 assertComposition({ 6 assertComposition({
18 property: 'left', 7 property: 'word-spacing',
19 underlying: '50px', 8 underlying: '50px',
20 addFrom: '100px', 9 addFrom: '100px',
21 addTo: '200px', 10 addTo: '200px',
22 }, [ 11 }, [
23 {at: -0.3, is: '120px'}, 12 {at: -0.3, is: '120px'},
24 {at: 0, is: '150px'}, 13 {at: 0, is: '150px'},
25 {at: 0.5, is: '200px'}, 14 {at: 0.5, is: '200px'},
26 {at: 1, is: '250px'}, 15 {at: 1, is: '250px'},
27 {at: 1.5, is: '300px'}, 16 {at: 1.5, is: '300px'},
28 ]); 17 ]);
29 18
30 assertComposition({ 19 assertComposition({
31 property: 'left', 20 property: 'word-spacing',
21 underlying: '100px',
22 addFrom: '10px',
23 addTo: '2px',
24 }, [
25 {at: -0.5, is: '114px'},
26 {at: 0, is: '110px'},
27 {at: 0.5, is: '106px'},
28 {at: 1, is: '102px'},
29 {at: 1.5, is: '98px'},
30 ]);
31
32 assertComposition({
33 property: 'word-spacing',
32 underlying: '50px', 34 underlying: '50px',
33 addFrom: '100px', 35 addFrom: '100px',
34 replaceTo: '200px', 36 replaceTo: '200px',
35 }, [ 37 }, [
36 {at: -0.3, is: '135px'}, 38 {at: -0.3, is: '135px'},
37 {at: 0, is: '150px'}, 39 {at: 0, is: '150px'},
38 {at: 0.5, is: '175px'}, 40 {at: 0.5, is: '175px'},
39 {at: 1, is: '200px'}, 41 {at: 1, is: '200px'},
40 {at: 1.5, is: '225px'}, 42 {at: 1.5, is: '225px'},
41 ]); 43 ]);
42
43 assertComposition({
44 property: 'left',
45 underlying: 'auto',
46 addFrom: '100px',
47 addTo: '200px',
48 }, [
49 {at: -0.3, is: '70px'},
50 {at: 0, is: '100px'},
51 {at: 0.5, is: '150px'},
52 {at: 1, is: '200px'},
53 {at: 1.5, is: '250px'},
54 ]);
55 </script> 44 </script>
56 </body> 45 </body>
OLDNEW
« no previous file with comments | « LayoutTests/animations/composition/width-composition.html ('k') | LayoutTests/animations/composition/x-composition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698