summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/css-styling/width-height-002-ref.html
blob: ed5125e95265b4e158a244766138c62fd5f86a3b (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
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>content position with width/height (reference)</title>
<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;
      display: inline-block;
  }
  .center {
      text-align: center;
  }

  /* Revert style specified in the UA style sheet that changes box size. */
  mfrac { padding: 0; }
</style>
</head>
<body>
  <div class="test">
    <div class="box">
      <math>
        <mtext>X</mtext>
      </math>
    </div>
    <div class="box" dir="rtl">
      <math dir="rtl">
        <mtext>X</mtext>
      </math>
    </div>
  </div>

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

  <div class="test">
    <div class="box">
      <math>
        <mpadded lspace="1em" voffset="-1em">
          <mtext>X</mtext>
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mpadded>
      </math>
    </diV>
    <div class="box" dir="rtl">
      <math dir="rtl">
        <mpadded lspace="1em" voffset="-1em">
          <mtext>X</mtext>
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mpadded>
      </math>
    </div>
  </div>

  <div class="test">
    <div class="box">
      <math>
        <mpadded width="9em" height="1em" depth=".5em">
          <mtext>X</mtext>
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mpadded>
      </math>
    </div>
    <div class="box" dir="rtl">
      <math dir="rtl">
        <mpadded width="9em" height="1em" depth=".5em">
          <mtext>X</mtext>
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mpadded>
      </math>
    </div>
  </div>

  <div class="test">
    <div class="box center">
      <math>
        <mfrac linethickness="0">
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mfrac>
      </math>
    </div>
    <div class="box center" dir="rtl">
      <math dir="rtl">
        <mfrac linethickness="0">
          <mtext>X</mtext>
          <mtext>X</mtext>
        </mfrac>
      </math>
    </div>
  </div>

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

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

</body>
</htmL>