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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/composition/font-variation-settings-composition.html

Issue 2891743003: Enable interpolation of CSS property font-variation-settings (Closed)
Patch Set: updatetest Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/font-variation-settings-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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="UTF-8">
3 <body>
4 <script src="../interpolation/resources/interpolation-test.js"></script>
5 <script>
6 assertComposition({
7 property: 'font-variation-settings',
8 underlying: '"'test' 50"',
9 addFrom: '"'test' 100"',
10 addTo: '"'test' 200"',
11 }, [
12 {at: -0.3, is: "'test' 120"},
13 {at: 0, is: "'test' 150"},
14 {at: 0.5, is: "'test' 200"},
15 {at: 1, is: "'test' 250"},
16 {at: 1.5, is: "'test' 300"},
17 ]);
18
19 assertComposition({
20 property: 'font-variation-settings',
21 underlying: '"'test' 50"',
22 addFrom: '"'test' 100"',
23 replaceTo: '"'test' 200"',
24 }, [
25 {at: -0.3, is: "'test' 135"},
26 {at: 0, is: "'test' 150"},
27 {at: 0.5, is: "'test' 175"},
28 {at: 1, is: "'test' 200"},
29 {at: 1.5, is: "'test' 225"},
30 ]);
31
32 assertComposition({
33 property: 'font-variation-settings',
34 underlying: '"'test' 100"',
35 addFrom: ''normal'',
36 replaceTo: '"'test' 200"',
37 }, [
38 {at: -0.3, is: 'normal'},
39 {at: 0, is: 'normal'},
40 {at: 0.5, is: "'test' 200"},
41 {at: 1, is: "'test' 200"},
42 {at: 1.5, is: "'test' 200"},
43 ]);
44
45 assertComposition({
46 property: 'font-variation-settings',
47 underlying: '"'test' 100"',
48 addFrom: ''normal'',
49 addTo: '"'test' 200"',
50 }, [
51 {at: -0.3, is: 'normal'},
52 {at: 0, is: 'normal'},
53 {at: 0.5, is: "'test' 300"},
54 {at: 1, is: "'test' 300"},
55 {at: 1.5, is: "'test' 300"},
56 ]);
57
58 assertComposition({
59 property: 'font-variation-settings',
60 underlying: '"'aaaa' 100, 'bbbb' 200"',
61 addFrom: '"'aaaa' 20, 'bbbb' 50"',
62 addTo: '"'aaaa' 30, 'bbbb' 100"',
63 }, [
64 {at: -0.3, is: "'aaaa' 117, 'bbbb' 235"},
65 {at: 0, is: "'aaaa' 120, 'bbbb' 250"},
66 {at: 0.5, is: "'aaaa' 125, 'bbbb' 275"},
67 {at: 1, is: "'aaaa' 230, 'bbbb' 300"},
68 {at: 1.5, is: "'aaaa' 235, 'bbbb' 325"},
69 ]);
70
71 assertComposition({
72 property: 'font-variation-settings',
73 underlying: '"'test' 100"',
74 addFrom: '"'aaaa' 20, 'bbbb' 50"',
75 addTo: '"'aaaa' 30, 'bbbb' 100"',
76 }, [
77 {at: -0.3, is: "'aaaa' 17, 'bbbb' 35"},
78 {at: 0, is: "'aaaa' 20, 'bbbb' 50"},
79 {at: 0.5, is: "'aaaa' 25, 'bbbb' 75"},
80 {at: 1, is: "'aaaa' 30, 'bbbb' 100"},
81 {at: 1.5, is: "'aaaa' 35, 'bbbb' 125"},
82 ]);
83 </script>
84 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/interpolation/font-variation-settings-interpolation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698