-
Notifications
You must be signed in to change notification settings - Fork 1
/
webkitmathml.css
executable file
·323 lines (317 loc) · 12.7 KB
/
webkitmathml.css
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
math[display="block"]
{display:block;
margin:1ex 1em 1ex 12%;
text-align:left;
page-break-inside:avoid;}
math[display="block"]:before
{content:"(" counter(equation) ")";
counter-increment:equation;
display:block;
float:right;}
msubsup, msub, msup, munder, mover, munderover
{display:inline-table;
white-space:nowrap;}
munder > *, mover > *, munderover > *
{display:table-row;
text-align:center;}
mover > * + *, munderover > * + * + *
{display:table-caption;}
munder > * + *, mover > * + *, munderover > * + *
{line-height:1.2em;
font-size:0.7em;}
msup > *:first-child, msubsup > *:first-child
{padding-top:0.6ex;}
msub > *:first-child, msubsup > *:first-child
{padding-bottom:0.6ex;}
msubsup > *, msub > *, msup > *
{display:table-cell;}
msubsup > * + *, msub > * + *, msup > * + *
{font-size:0.7em;}
msubsup > * + *, msub > * + *
{vertical-align:bottom;}
msubsup > * + * + *, msup > * + *
{vertical-align:top;}
mfenced > *:before
{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20400%22%3E%3Cpath%20d%3D%22M100%2C%20400%20Q5%2C350%205%2C200%20Q5%2C%2050%20100%2C%200%20Q25%2C%2050%2025%2C200%20Q25%2C%20350%20100%2C400%22%20fill%3D%22black%22/%3E%3C/svg%3E");
content: "(";
}
mfenced > *:after
{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20400%22%3E%3Cpath%20d%3D%22M0%2C%20400%20Q95%2C350%2095%2C200%20Q95%2C%2050%200%2C%200%20Q75%2C%2050%2075%2C200%20Q75%2C%20350%200%2C400%22%20fill%3D%22black%22/%3E%3C/svg%3E%0D%0A");}
mfenced[open="["] > *:before
{border-style:solid;
border-width:1px 0 1px 1px;
background-image:none;}
mfenced[close="]"] > *:after
{border-style:solid;
border-width:1px 1px 1px 0;
background-image:none;}
mfenced[open="\2016"] > *:before
{border-style:double;
border-width:0 0 0 3px;
background-image:none;}
mfenced[close="\2016"] > *:after
{border-style:double;
border-width:0 3px 0 0;
background-image:none;}
mfenced[open="\27e6"] > *:before
{border-style:double;
border-width:2px 0 2px 3px;
background-image:none;}
mfenced[close="\27e7"] > *:after
{border-style:double;
border-width:2px 3px 2px 0;
background-image:none;}
mfenced[open="|"] > *:before
{border-style:solid;
border-width:0 0 0 1px;
background-image:none;}
mfenced[close="|"] > *:after
{border-style:solid;
border-width:0 1px 0 0;
background-image:none;}
mfenced[open="\230a"] > *:before
{border-style:solid;
border-width:0 0 1px 1px;
background-image:none;}
mfenced[close="\230b"] > *:after
{border-style:solid;
border-width:0 1px 1px 0;
background-image:none;}
mfenced[open="\2308"] > *:before
{border-style:solid;
border-width:1px 0 0 1px;
background-image:none;}
mfenced[close="\2309"] > *:after
{border-style:solid;
border-width:1px 1px 0 0;
background-image:none;}
mfenced[open="{"] > *:before
{content:"\A0\A0";
background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20400%22%3E%3Cpath%20d%3D%22M100%2C%20400%20Q40%2C400%2040%2C250%20Q40%2C200%200%2C200%20Q40%2C200%2040%2C150%20Q40%2C0%20100%2C0%20Q55%2C0%2055%2C150%20Q55%2C%20200%200%2C200%20Q55%2C200%2055%2C250%20Q55%2C400%20100%2C400%22%20fill%3D%22black%22/%3E%3C/svg%3E");}
mfenced[close="}"] > *:after
{content:"\A0\A0";
background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20400%22%3E%3Cpath%20d%3D%22M0%2C%20400%20Q60%2C400%2060%2C250%20Q60%2C200%20100%2C200%20Q60%2C200%2060%2C150%20Q60%2C0%200%2C0%20Q45%2C0%2045%2C150%20Q45%2C%20200%20100%2C200%20Q45%2C200%2045%2C250%20Q45%2C400%200%2C400%22%20fill%3D%22black%22/%3E%3C/svg%3E");}
mfenced[open="\27e8"] > *:before, mfenced[open="\2329"] > *:before
{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20300%22%3E%3Cpath%20d%3D%22M100%2C%20300%20L5%2C%20150%20L100%2C%200%20L30%2C150%20L100%2C300%22%20fill%3D%22black%22/%3E%3C/svg%3E");}
mfenced[close="\27e9"] > *:after, mfenced[close="\232A"] > *:after
{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20100%20300%22%3E%3Cpath%20d%3D%22M0%2C%20300%20L95%2C%20150%20L0%2C%200%20L70%2C150%20L0%2C300%22%20fill%3D%22black%22/%3E%3C/svg%3E");}
mfenced[open=""] > *:before, mfenced[close=""] > *:after
{content:normal;}
mfenced
{display:inline-table;}
mfenced > *:first-child
{display:table-row;}
mfenced > *:first-child:before,
mfenced > *:first-child:after
{display:table-cell;
content:"\A0";
border-style:solid;
border-width:1px 0 1px 1px;}
mfenced > *:first-child:after
{border-width:1px 1px 1px 0;}
mfenced[separators=""] > mrow > *:before
{content: "";}
mfenced[separators="|"] > mrow > *:before
{content: "|";}
mfenced[separators="+"] > mrow > *:before
{content: "+";}
mfenced > mrow > *:before
{content: ",";}
mfenced > mrow > *:first-child:before
{content: "";}
matrix
{display:inline-table;}
mfrac
{display:inline-table;
border-collapse:collapse;
white-space:nowrap;
text-align:center;
line-height:1em;
margin:0 2px;
vertical-align:0.9em;}
mfrac > *
{line-height:1.5em;}
mfrac > *:first-child
{display:inline-table;
vertical-align:text-bottom;}
mfrac > * + *
{display:table-row;
border-top:solid thin;}
mfrac[linethickness="0"] > * + *
{border-top:none;}
mfrac[linethickness="2"] > * + *,
mfrac[linethickness="medium"] > * + *
{border-top-width:medium;}
mfrac[linethickness="3"] > * + *,
mfrac[linethickness="thick"] > * + *
{border-top-width:thick;}
msqrt
{display:inline-block;
position:relative;
border-top:solid 1px;
border-left:groove 2px;
z-index:1;
margin:1px 0;
padding:2px 5px 0 3px;}
msqrt:before
{
display:inline-block;
vertical-align: bottom;
position:relative;
left: -0.5em;
top: 0em;
content: "\\";
}
mtable
{display:inline-table;
border-collapse:collapse;
vertical-align:middle;
text-align:center;
margin:1px;}
mtr
{display:table-row}
mtd
{display:table-cell;
line-height:1.7em;
white-space:nowrap;
padding:1px 8px}
mtable[frame="solid"]
{border:solid thin;}
mtable[frame="dashed"]
{border:dashed thin;}
mtable[columnlines="solid"] > * > * + *
{border-left:solid thin;}
mtable[columnlines="dashed"] > * > * + *
{border-left:dashed thin;}
mtable[rowlines="solid"] > * + *
{border-top:solid thin;}
mtable[rowlines="dashed"] > * + *
{border-top:dashed thin;}
mtable[rowalign="top"] > * > *, mtd[rowalign="top"], mtr[rowalign="top"] > *
{vertical-align:top;}
mtable[rowalign="center"] > * > *, mtd[rowalign="center"], mtr[rowalign="center"] > *
{vertical-align:middle;}
mtable[rowalign="bottom"] > * > *, mtd[rowalign="bottom"], mtr[rowalign="bottom"] > *
{vertical-align:bottom;}
mtable[rowalign="baseline"] > * > *, mtd[rowalign="baseline"], mtr[rowalign="baseline"] > *
{vertical-align:baseline;}
mtable[columnalign="left"], mtd[columnalign="left"], mtr[columnalign="left"]
{text-align:left;}
mtable[columnalign="right"], mtd[columnalign="right"], mtr[columnalign="right"]
{text-align:right;}
mtable[columnalign="center"], mtd[columnalign="center"], mtr[columnalign="center"]
{text-align:center;}
mphantom
{visibility:hidden}
merror
{outline:solid thin red}
merror:before
{content:"Error: "}
maction[actiontype="highlight"]:hover
{background-color:InfoBackground;
color:InfoText;}
maction[actiontype="toggle"] > * + *,maction[actiontype="toggle"]:hover > *:first-child
{display:none}
maction[actiontype="toggle"]:hover > *:first-child + *
{display:inline-block;}
maction[actiontype="statusline"] > * + *, maction[actiontype="tooltip"] > * + *
{display:none}
maction[actiontype="statusline"]:hover > * + *, maction[actiontype="tooltip"]:hover > * + *
{position:fixed;
display:block;
top:0;
left:0;
background-color:InfoBackground;
color:InfoText;
padding:0.5ex;
border:solid 1px}
mspace[linebreak="goodbreak"]:before
{content:"\u200B";
white-space:normal;}
mspace[linebreak="newline"]:before, mspace[linebreak="indentingnewline"]:before
{content:"\\000A";
white-space:pre;}
mglyph[alt]:before
{content:attr(alt);}
mi[normal], mi[mathvariant="normal"],mn[normal], mn[mathvariant="normal"],mo[normal], mo[mathvariant="normal"],ms[normal], ms[mathvariant="normal"],mtext[normal], mtext[mathvariant="normal"]
{font-style:normal;
font-weight:normal;}
mi[mathvariant="italic"], mi[mathvariant="bold-italic"],mi[mathvariant="sans-serif-italic"], mi[mathvariant="sans-serif-bold-italic"],
mn[mathvariant="italic"], mn[mathvariant="bold-italic"],mn[mathvariant="sans-serif-italic"], mn[mathvariant="sans-serif-bold-italic"],
mo[mathvariant="italic"], mo[mathvariant="bold-italic"],mo[mathvariant="sans-serif-italic"], mo[mathvariant="sans-serif-bold-italic"],
ms[mathvariant="italic"], ms[mathvariant="bold-italic"],ms[mathvariant="sans-serif-italic"], ms[mathvariant="sans-serif-bold-italic"],
mtext[mathvariant="italic"], mtext[mathvariant="bold-italic"],mtext[mathvariant="sans-serif-italic"], mtext[mathvariant="sans-serif-bold-italic"]
{font-style:italic;}
mi[mathvariant="bold"], mi[mathvariant="bold-italic"], mi[mathvariant="bold-sans-serif"], mi[mathvariant="sans-serif-bold-italic"],
mn[mathvariant="bold"], mn[mathvariant="bold-italic"], mn[mathvariant="bold-sans-serif"], mn[mathvariant="sans-serif-bold-italic"],
mo[mathvariant="bold"], mo[mathvariant="bold-italic"], mo[mathvariant="bold-sans-serif"], mo[mathvariant="sans-serif-bold-italic"],
ms[mathvariant="bold"], ms[mathvariant="bold-italic"], ms[mathvariant="bold-sans-serif"], ms[mathvariant="sans-serif-bold-italic"],
mtext[mathvariant="bold"], mtext[mathvariant="bold-italic"], mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="sans-serif-bold-italic"]
{font-weight:bold;}
mi[mathvariant="monospace"], mn[mathvariant="monospace"],mo[mathvariant="monospace"], ms[mathvariant="monospace"],mtext[mathvariant="monospace"]
{font-family:monospace;}
mi[mathvariant="bold-sans-serif"], mi[mathvariant="bold-sans-serif"], mi[mathvariant="sans-serif-italic"], mi[mathvariant="sans-serif-bold-italic"],
mn[mathvariant="bold-sans-serif"], mn[mathvariant="bold-sans-serif"], mn[mathvariant="sans-serif-italic"], mn[mathvariant="sans-serif-bold-italic"],
mo[mathvariant="bold-sans-serif"], mo[mathvariant="bold-sans-serif"], mo[mathvariant="sans-serif-italic"], mo[mathvariant="sans-serif-bold-italic"],
ms[mathvariant="bold-sans-serif"], ms[mathvariant="bold-sans-serif"], ms[mathvariant="sans-serif-italic"], ms[mathvariant="sans-serif-bold-italic"],
mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="bold-sans-serif"], mtext[mathvariant="sans-serif-italic"], mtext[mathvariant="sans-serif-bold-italic"]
{font-family:sans-serif;}
mi[mathsize="small"], mn[mathsize="small"],mo[mathsize="small"], ms[mathsize="small"],mtext[mathsize="small"]
{font-size:0.8em;}
mi[mathsize="normal"], mn[mathsize="normal"],mo[mathsize="normal"], ms[mathsize="normal"],mtext[mathsize="normal"]
{font-size:1em;}
mi[mathsize="big"], mn[mathsize="big"],mo[mathsize="big"], ms[mathsize="big"],mtext[mathsize="big"]
{font-size:1.3em;}
ms:before, ms:after
{content:"\\0022"}
ms[lquote]:before
{content:attr(lquote)}
ms[rquote]:after
{content:attr(rquote)}
menclose
{display:inline-table;
border-style:solid;
border-width:1px;
padding:0 2px;}
menclose[notation="vertical"]
{border-width:0 1px;}
menclose[notation="actuarial"]
{border-width:1px 0 0 1px;}
menclose[notation="horizontal"]
{border-width:1px 0;}
menclose[notation="top"]
{border-width:1px 0 0 0;}
menclose[notation="bottom"]
{border-width:0 0 1px 0;}
menclose[notation="left"]
{border-width:0 0 0 1px;}
menclose[notation="right"]
{border-width:0 1px 0 0;}
menclose[notation="overbrace"],
menclose[notation="underbrace"]
{border-style:none;}
menclose[notation="overbrace"]:before,
menclose[notation="underbrace"]:after
{display:block;
content:"\A0";
border-style:solid;
border-width:0 1px 1px 1px;
height:3px;}
menclose[notation="overbrace"]:before
{display:table-caption;
border-width:1px 1px 0 1px;}
mrow[class="vert"]
{ border-style:solid;
border-width: 0 1px 0 1px ;
padding: 0 1px 0 1px;}
mmultiscriptsx
{display:inline-table;
line-height:0.4em;
margin-top:0.4ex;
margin-bottom:0.4ex;}
mmultiscriptsx > *
{display:table-row;}
mtrx
{display:table-row;}
mtdx
{display:table-cell;}