summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/css-styling/width-height-003.html
blob: 05e00f4759b2f7a4b38262353d9c8de6ba6981c0 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>content position with width/height</title>
<link rel="match" href="width-height-003-ref.html">
<link rel="help" href="https://w3c.github.io/mathml-core/#layout-algorithms">
<link rel="help" href="https://w3c.github.io/mathml-core/#underscripts-and-overscripts-munder-mover-munderover">
<meta name="assert" content="Verify the inline-start and block-start edges of the math content box for the munder, mover, munderover, msub, msup, msubsup, multiscripts layout algorithms."/>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  body, math {
      font: 25px/1 Ahem;
      color: black;
  }
  .test {
      margin: .5em;
  }
  .box {
      width: 7em;
      height: 3em;
      border: 1px solid blue;
  }
</style>
</head>
<body>

  <div class="test">
    <math>
      <munder class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </munder>
    </math>
    <math dir="rtl">
      <munder class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </munder>
    </math>
  </div>

  <div class="test">
    <math>
      <mover class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </mover>
    </math>
    <math dir="rtl">
      <mover class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </mover>
    </math>
  </div>

  <div class="test">
    <math>
      <munderover class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </munderover>
    </math>
    <math dir="rtl">
      <munderover class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </munderover>
    </math>
  </div>

  <div class="test">
    <math>
      <msub class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msub>
    </math>
    <math dir="rtl">
      <msub class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msub>
    </math>
  </div>

  <div class="test">
    <math>
      <msup class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msup>
    </math>
    <math dir="rtl">
      <msup class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msup>
    </math>
  </div>

  <div class="test">
    <math>
      <msubsup class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msubsup>
    </math>
    <math dir="rtl">
      <msubsup class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </msubsup>
    </math>
  </div>

  <div class="test">
    <math>
      <mmultiscripts class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mprescripts/>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </mmultiscripts>
    </math>
    <math dir="rtl">
      <mmultiscripts class="box">
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mtext>X</mtext>
        <mprescripts/>
        <mtext>X</mtext>
        <mtext>X</mtext>
      </mmultiscripts>
    </math>
  </div>

</body>
</htmL>