OSDN Git Service

am 3c54ece0: am 5dc34a85: activeDocumentLoader() causes crash in WebCoreFrameBridge.cpp
[android-x86/external-webkit.git] / WebCore / css / mathml.css
1 @namespace "http://www.w3.org/1998/Math/MathML";
2
3 math {
4     font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif;
5     display: inline-block;
6     padding: 0px;
7     margin: 0px;
8     text-align: left;
9     vertical-align: baseline;
10     line-height: 1.0;
11     padding-left: 1px;
12     padding-right: 1px;
13 }
14
15 math[display="block"] {
16     display: block;
17     page-break-inside: avoid;
18     margin-bottom: 1em;
19 }
20
21 math > * {
22     vertical-align: baseline;
23 }
24
25 mrow, mfenced {
26     display: inline-block;
27     white-space: nowrap;
28     padding-left: 1px;
29     padding-right: 1px;
30 }
31
32 mi {
33     font-style: italic;
34     padding-right: 0.1em;
35 }
36
37 mi + mrow {
38     margin-left: 0.1em;
39 }
40
41 mfrac {
42     display: inline-block;
43 }
44
45 msub, msup {
46     display: inline-block;
47     vertical-align: baseline;
48 }
49
50 msub > * + * {
51     vertical-align: sub;
52     font-size: 0.75em;
53 }
54
55 msup > * + * {
56     vertical-align: super;
57     font-size: 0.75em;
58 }
59
60 msubsup {
61     display: inline-block;
62     vertical-align: baseline;
63 }
64
65 msubsup > * {
66     margin: 0px;
67     padding: 0px;
68 }
69
70 msubsup > * + * {
71     font-size: 0.75em;
72 }
73
74 munder, mover, munderover {
75     display: inline-block;
76     vertical-align: baseline;
77 }
78
79 munderover > * + *, mover > * + *, munder > * + * {
80     font-size: 0.75em;
81 }
82
83 mo, mn, mi, mtext {
84     padding: 0px;
85     margin: 0px;
86 }
87
88 mo {
89     display: inline-block;
90 }
91
92 math > mo, mrow > mo, mfenced > mo {
93     padding-left: 0.05em;
94     padding-right: 0.05em;
95 }
96
97 math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"] {
98     font-style: normal;
99     font-weight: normal;
100 }
101
102 math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"] {
103     font-style: normal;
104     font-weight: bold;
105 }
106
107 math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"] {
108     font-style: italic;
109     font-weight: normal;
110 }
111
112 math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"] {
113     font-weight: bold;
114     font-style: italic;
115 }
116
117 math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"] {
118     font-size: 0.75em;
119 }
120
121 math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"] {
122     font-size: 1em;
123 }
124
125 math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"] {
126     font-size: 1.5em;
127 }
128  
129 annotation, annotation-xml {
130     display:none;
131 }
132
133 mphantom {
134     visibility: hidden;
135 }
136
137 merror {
138     outline: solid thin red;
139     font-weight: bold;
140     font-family: sans-serif;
141     background-color: lightYellow;
142 }
143
144 msqrt {
145     display: inline-block;
146     padding-top: 0.2em;
147     padding-left: 0.75em;
148 }
149
150 mroot {
151     display: inline-block;
152     position: relative;
153     padding-top: 0.2em;
154     padding-left: 0.2em;
155 }
156
157 mroot > * + * {
158     font-size: 0.75em;
159     vertical-align: bottom;
160     position: absolute;
161     left: 0px;
162     padding-right: 0.4em;
163     padding-left: 0.2em;
164     padding-bottom: 0.2em;
165 }
166
167 mroot > * + mrow, mroot > * + mfenced {
168     padding-bottom: 0.4em;
169 }
170
171 mtable {
172     display: inline-table;
173     text-align: center;
174     vertical-align: -40%;
175 }
176
177 mtr {
178     display: table-row;
179 }
180
181 mtd {
182     display: table-cell;
183     padding: 0 0.5ex;
184 }
185
186 mtable[columnalign="left"], mtr[columnalign="left"], mtd[columnalign="left"] {
187     text-align: left;
188 }
189
190 mtable[columnalign="right"], mtr[columnalign="right"], mtd[columnalign="right"] {
191     text-align: right;
192 }
193
194 mtable[rowalign="top"] mtd, mtable mtr[rowalign="top"] mtd, mtable mtr mtd[rowalign="top"] {
195     vertical-align: top;
196 }
197
198 mtable[rowalign="bottom"] mtd, mtable mtr[rowalign="bottom"] mtd, mtable mtr mtd[rowalign="bottom"] {
199     vertical-align: bottom;
200 }
201
202 mtable[rowalign="center"] mtd, mtable mtr[rowalign="center"] mtd, mtable mtr mtd[rowalign="center"] {
203     vertical-align: middle;
204 }
205
206 mtable[frame="solid"] {
207     border: solid thin;
208 }
209
210 mtable[frame="dashed"] {
211     border: dashed thin;
212 }
213
214 mtable[rowlines="solid"], mtable[rowlines="dashed"], mtable[columnlines="solid"], mtable[columnlines="dashed"] {
215     border-collapse: collapse;
216 }
217
218 mtable[rowlines="solid"] > mtr + mtr {
219     border-top: solid thin;
220 }
221
222 mtable[rowlines="dashed"] > mtr + mtr {
223     border-top: dashed thin;
224 }
225
226 mtable[columnlines="solid"] > mtr > mtd + mtd {
227     border-left: solid thin;
228 }
229
230 mtable[columnlines="dashed"] > mtr > mtd + mtd {
231     border-left: dashed thin;
232 }
233
234 mspace[linebreak="newline"] {
235     display: block;
236 }