File: font-variation-settings-composition.html

package info (click to toggle)
thunderbird 1%3A91.13.0-1~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,953,400 kB
  • sloc: cpp: 6,084,049; javascript: 4,790,441; ansic: 3,341,496; python: 862,958; asm: 366,542; xml: 204,277; java: 152,477; sh: 111,436; makefile: 21,388; perl: 15,312; yacc: 4,583; objc: 3,026; lex: 1,720; exp: 762; pascal: 635; awk: 564; sql: 453; php: 436; lisp: 432; ruby: 99; sed: 69; csh: 45
file content (92 lines) | stat: -rw-r--r-- 2,547 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<meta charset="UTF-8">
<title>font-variation-settings composition</title>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#propdef-font-variation-settings">
<meta name="assert" content="font-variation-settings supports animation pairwise by 'like' properties">

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>

<body></body>

<script>
test_composition({
  property: 'font-variation-settings',
  underlying: "'test' 50",
  addFrom: "'test' 100",
  addTo: "'test' 200",
}, [
  {at: -0.3, expect: "'test' 120"},
  {at: 0, expect: "'test' 150"},
  {at: 0.5, expect: "'test' 200"},
  {at: 1, expect: "'test' 250"},
  {at: 1.5, expect: "'test' 300"},
]);

test_composition({
  property: 'font-variation-settings',
  underlying: "'test' 50",
  addFrom: "'test' 100",
  replaceTo: "'test' 200",
}, [
  {at: -0.3, expect: "'test' 135"},
  {at: 0, expect: "'test' 150"},
  {at: 0.5, expect: "'test' 175"},
  {at: 1, expect: "'test' 200"},
  {at: 1.5, expect: "'test' 225"},
]);

test_composition({
  property: 'font-variation-settings',
  underlying: "'test' 100",
  addFrom: 'normal',
  replaceTo: "'test' 200",
}, [
  {at: -0.3, expect: 'normal'},
  {at: 0, expect: 'normal'},
  {at: 0.5, expect: "'test' 200"},
  {at: 1, expect: "'test' 200"},
  {at: 1.5, expect: "'test' 200"},
]);

test_composition({
  property: 'font-variation-settings',
  underlying: "'test' 100",
  addFrom: 'normal',
  addTo: "'test' 200",
}, [
  {at: -0.3, expect: 'normal'},
  {at: 0, expect: 'normal'},
  {at: 0.5, expect: "'test' 300"},
  {at: 1, expect: "'test' 300"},
  {at: 1.5, expect: "'test' 300"},
]);

test_composition({
  property: 'font-variation-settings',
  underlying: "'aaaa' 100, 'bbbb' 200",
  addFrom: "'aaaa' 20, 'bbbb' 50",
  addTo: "'aaaa' 30, 'bbbb' 100",
}, [
  {at: -0.3, expect: "'aaaa' 117, 'bbbb' 235"},
  {at: 0, expect: "'aaaa' 120, 'bbbb' 250"},
  {at: 0.5, expect: "'aaaa' 125, 'bbbb' 275"},
  {at: 1, expect: "'aaaa' 130, 'bbbb' 300"},
  {at: 1.5, expect: "'aaaa' 135, 'bbbb' 325"},
]);

test_composition({
  property: 'font-variation-settings',
  underlying: "'test' 100",
  addFrom: "'aaaa' 20, 'bbbb' 50",
  addTo: "'aaaa' 30, 'bbbb' 100",
}, [
  {at: -0.3, expect: "'aaaa' 17, 'bbbb' 35"},
  {at: 0, expect: "'aaaa' 20, 'bbbb' 50"},
  {at: 0.5, expect: "'aaaa' 25, 'bbbb' 75"},
  {at: 1, expect: "'aaaa' 30, 'bbbb' 100"},
  {at: 1.5, expect: "'aaaa' 35, 'bbbb' 125"},
]);
</script>
</body>