File: font-variant-06.xht

package info (click to toggle)
firefox-esr 68.10.0esr-1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,143,932 kB
  • sloc: cpp: 5,227,879; javascript: 4,315,531; ansic: 2,467,042; python: 794,975; java: 349,993; asm: 232,034; xml: 228,320; sh: 82,008; lisp: 41,202; makefile: 22,347; perl: 15,555; objc: 5,277; cs: 4,725; yacc: 1,778; ada: 1,681; pascal: 1,673; lex: 1,417; exp: 527; php: 436; ruby: 225; awk: 162; sed: 53; csh: 44
file content (83 lines) | stat: -rw-r--r-- 2,562 bytes parent folder | download | duplicates (10)
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Test: font-variant descriptor in @font-face rule is overriden by equivalent style rules</title>
<link rel="author" title="Mike Bremford" href="mike@bfo.com" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-prop" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-rend-desc" />
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#feature-precedence" />
<link rel="match" href="font-variant-06-ref.xht" />
<meta name="assert" content="‘font-variant-numeric’ cannot turn OFF features turned ON in @font-face" />
<style>
  @font-face {
    font-family: fwf;
    src: url(support/fonts/FontWithFancyFeatures.otf);
    font-variant: oldstyle-nums;
  }
  .test, .ref {
    font-family: fwf;
    font-size: 2.4em;
    position: absolute;
  }
  .test {
      color: green;
  }
  .ref {
      color: red;
  }
  .t1 { }
  .t2 { font-variant-numeric: oldstyle-nums; }
  .t3 { font-variant-numeric: normal; }
  .t4 { font-variant-numeric: slashed-zero; }
  .t5 { font-variant-numeric: invalid-value; }
  .t6 { font-variant: none; }
  .t7 { font-variant: normal; }
  .t8 { font-variant: initial; }
  .t9 { font-variant: invalid-value; }
  /**
   * Some notes on this test.
   *
   * t1
   *   the font-variant property from @font-face is applied.
   * t2
   *   simply restating the value set in the @font-face rule
   * t3
   *   "font-variant-numeric: normal" does not turn off the "on" value
   *   for oldstyle-nums, which remains on as set in @font-face
   * t4
   *   "font-variant-numeric: slashed-zero" is valid, but does not
   *   change the "on" value for oldstyle-nums as set in @font-face
   * t6, t7, t8
       these font-variant values all set font-variant-numeric to normal
   * t5, r9
   *   an invalid value means the rule is invalid, and should be ignored.
   */
</style>
</head>
<body>
<p>Test passes if there are nine check marks below and no red visible.</p>
<section class="ref">
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
  <span>A</span>
</section>
<section class="test">
  <span class="t1">Q</span>
  <span class="t2">Q</span>
  <span class="t3">Q</span>
  <span class="t4">Q</span>
  <span class="t5">Q</span>
  <span class="t6">Q</span>
  <span class="t7">Q</span>
  <span class="t8">Q</span>
  <span class="t9">Q</span>
</section>
</body>
</html>