2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* namespace for MathML elements */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
@namespace url(http://www.w3.org/1998/Math/MathML);
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* <math> - outermost math element */
|
2007-12-04 19:58:09 -08:00
|
|
|
/* Put Cambria before Cambria Math as Cambria Math has neither bold nor */
|
|
|
|
/* italic. */
|
2007-03-22 10:30:00 -07:00
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
math {
|
|
|
|
direction: ltr;
|
|
|
|
unicode-bidi: embed;
|
2010-02-01 23:29:59 -08:00
|
|
|
display: inline;
|
2007-03-22 10:30:00 -07:00
|
|
|
font-size: inherit;
|
|
|
|
font-style: normal;
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_Main, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
2008-04-08 22:30:08 -07:00
|
|
|
text-rendering: optimizeLegibility;
|
2007-03-22 10:30:00 -07:00
|
|
|
-moz-float-edge: margin-box;
|
|
|
|
}
|
|
|
|
math[mode="display"], math[display="block"] {
|
|
|
|
display: block;
|
|
|
|
text-align: -moz-center;
|
|
|
|
}
|
|
|
|
math[display="inline"] {
|
2010-02-01 23:29:59 -08:00
|
|
|
display: inline;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************/
|
2008-03-15 19:10:47 -07:00
|
|
|
/* Style switching during frame construction depending on the context of <mi>:
|
|
|
|
These rules are not used when mathvariant or fontstyle is specified
|
|
|
|
explicitly.
|
2007-03-22 10:30:00 -07:00
|
|
|
/**************************************************************************/
|
|
|
|
|
2008-03-15 19:10:47 -07:00
|
|
|
/* If the textual content of an <mi> consists of a single character
|
|
|
|
with a corresponding mathematical italic alphanumeric character,
|
|
|
|
then try to emulate that character */
|
2010-03-10 04:49:33 -08:00
|
|
|
[_moz-math-font-style="italic"] {
|
2008-03-15 19:10:47 -07:00
|
|
|
font-style: italic;
|
|
|
|
font-weight: normal;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-03-15 19:10:47 -07:00
|
|
|
/* If the textual content consists of multiple characters, then the default is
|
|
|
|
mathvariant=normal. It seems that mathvariant=normal should be interpreted
|
|
|
|
to mean non-slanted:
|
|
|
|
|
|
|
|
http://www.w3.org/TR/2003/REC-MathML2-20031021/chapter3.html#presm.commatt
|
|
|
|
|
|
|
|
"In particular, inheritance of the mathvariant attribute does not follow
|
|
|
|
the CSS model. The default value for this attribute is "normal"
|
|
|
|
(non-slanted) for all tokens except mi. ... (The deprecated fontslant
|
|
|
|
attribute also behaves this way.)"
|
|
|
|
*/
|
2010-03-10 04:49:33 -08:00
|
|
|
[_moz-math-font-style="normal"] {
|
2008-03-15 19:10:47 -07:00
|
|
|
font-style: normal;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2008-03-15 19:10:47 -07:00
|
|
|
/* A style-invariant character preserves its own style */
|
2010-03-10 04:49:33 -08:00
|
|
|
[_moz-math-font-style="invariant"] {
|
2008-03-15 19:10:47 -07:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: normal;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-06-24 05:54:37 -07:00
|
|
|
/**************************************************************************/
|
|
|
|
/* Links */
|
|
|
|
/**************************************************************************/
|
|
|
|
:-moz-any-link {
|
|
|
|
text-decoration: none !important;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/**************************************************************************/
|
|
|
|
/* attributes common to all tags */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
/* deprecated attributes from MathML 1.0 */
|
|
|
|
|
|
|
|
/* fontstyle */
|
|
|
|
[fontstyle="normal"] {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
[fontstyle="italic"] {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
/* fontweight */
|
|
|
|
[fontweight="normal"] {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
[fontweight="bold"] {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* attributes from MathML 2.0 */
|
|
|
|
|
|
|
|
/* These ones are handled in the back-end:
|
|
|
|
mathcolor (replaces 'color'):
|
|
|
|
#rgb | #rrggbb | html-color-name
|
|
|
|
mathbackground (replaces 'background'):
|
|
|
|
#rgb | #rrggbb | html-color-name
|
|
|
|
*/
|
|
|
|
/* mathvariant (replaces 'fontstyle' & 'fontweight' & 'fontslant'):
|
|
|
|
normal | bold | italic | bold-italic | double-struck | bold-fraktur | script |
|
|
|
|
bold-script | fraktur | sans-serif | bold-sans-serif | sans-serif-italic |
|
|
|
|
sans-serif-bold-italic | monospace
|
|
|
|
|
2008-03-15 19:10:47 -07:00
|
|
|
Note1: Back-end code for these is not yet written (bug 114365):
|
2007-03-22 10:30:00 -07:00
|
|
|
double-struck, script, fraktur, bold-fraktur, bold-script
|
|
|
|
|
|
|
|
Note2: Don't use the 'font' shorthand because it resets the font-size and this
|
|
|
|
breaks the propagation of the scriptlevel size.
|
|
|
|
|
|
|
|
XXX bugs 46622 & 114365: need -moz-math-serif, etc, to only lookup math fonts
|
2008-03-15 19:10:47 -07:00
|
|
|
|
|
|
|
The meaning of mathvariant=normal is unclear as there is no interpretation
|
|
|
|
that "corresponds to SMP Math Alphanumeric Symbol characters"
|
|
|
|
(http://www.w3.org/TR/2003/REC-MathML2-20031021/chapter3.html#presm.commatt),
|
|
|
|
but let's assume an explicit mathvariant=normal is an attempt to reset all
|
|
|
|
style.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
[mathvariant] { /* shared and same as [mathvariant="normal"] */
|
|
|
|
/* reset all font properties except those that affect the size */
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_Main, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
font-style: normal;
|
|
|
|
font-variant: normal;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2012-03-09 17:52:13 -08:00
|
|
|
[mathvariant="bold-fraktur"] {
|
|
|
|
font-weight: bold;
|
|
|
|
font-family: MathJax_Fraktur, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
[mathvariant="bold-script"] {
|
|
|
|
font-weight: bold;
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_Script, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
[mathvariant="bold"] {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
[mathvariant="italic"] {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
[mathvariant="bold-italic"] {
|
|
|
|
font-weight: bold;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
[mathvariant="sans-serif"] {
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_SansSerif, sans-serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
[mathvariant="bold-sans-serif"] {
|
|
|
|
font-weight: bold;
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_SansSerif, sans-serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
[mathvariant="sans-serif-italic"] {
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_SansSerif, sans-serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
[mathvariant="sans-serif-bold-italic"] {
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_SansSerif, sans-serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
font-weight: bold;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
[mathvariant="monospace"] {
|
2012-03-09 17:52:13 -08:00
|
|
|
font-family: MathJax_Typewriter, monospace;
|
|
|
|
}
|
|
|
|
[mathvariant="double-struck"] {
|
|
|
|
font-family: MathJax_AMS, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
|
|
|
}
|
|
|
|
[mathvariant="script"] {
|
|
|
|
font-family: MathJax_Script, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
|
|
|
}
|
|
|
|
[mathvariant="fraktur"] {
|
2012-04-16 18:01:10 -07:00
|
|
|
font-family: MathJax_Fraktur, STIXGeneral, DejaVu Serif, DejaVu Sans, Cambria, Cambria Math, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* tags with generated content */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
ms {
|
|
|
|
display: inline;
|
|
|
|
}
|
2012-09-03 05:13:03 -07:00
|
|
|
ms:before, ms:after {
|
|
|
|
content: "\0022";
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
2012-09-03 05:13:03 -07:00
|
|
|
ms[lquote]:before {
|
|
|
|
content: attr(lquote);
|
|
|
|
}
|
|
|
|
ms[rquote]:after {
|
|
|
|
content: attr(rquote);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
merror {
|
|
|
|
display: block;
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-weight: bold;
|
|
|
|
white-space: pre;
|
|
|
|
margin: 1em;
|
|
|
|
padding: 1em;
|
|
|
|
border-width: thin;
|
|
|
|
border-style: inset;
|
|
|
|
border-color: red;
|
|
|
|
font-size: 14pt;
|
|
|
|
background-color: lightyellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* mtable and its related tags */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
mtable {
|
2008-01-08 18:14:35 -08:00
|
|
|
display: inline-table;
|
2007-03-22 10:30:00 -07:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0;
|
2008-09-15 15:35:28 -07:00
|
|
|
text-indent: 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
mtable[frame="none"] {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
mtable[frame="solid"] {
|
|
|
|
border: solid thin;
|
|
|
|
}
|
|
|
|
mtable[frame="dashed"] {
|
|
|
|
border: dashed thin;
|
|
|
|
}
|
|
|
|
|
2011-09-26 19:13:23 -07:00
|
|
|
mtr, mlabeledtr {
|
2007-03-22 10:30:00 -07:00
|
|
|
display: table-row;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
mtd {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: inherit;
|
|
|
|
text-align: -moz-center;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2011-09-26 19:13:23 -07:00
|
|
|
/* Don't support m(labeled)tr without mtable, nor mtd without m(labeled)tr */
|
2007-03-22 10:30:00 -07:00
|
|
|
:not(mtable) > mtr,
|
2011-09-26 19:13:23 -07:00
|
|
|
:not(mtable) > mlabeledtr,
|
|
|
|
:not(mtr):not(mlabeledtr) > mtd {
|
2007-03-22 10:30:00 -07:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2011-09-26 19:13:23 -07:00
|
|
|
/* Hide the label because mlabeledtr is not supported yet (bug 356870). This
|
|
|
|
rule can be overriden by users. */
|
|
|
|
mlabeledtr > mtd:first-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/***********************/
|
|
|
|
/* -- mtd: columnalign */
|
|
|
|
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnalign="left"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtd[columnalign="left"] {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnalign="right"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtd[columnalign="right"] {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnalign="center"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtd[columnalign="center"] {
|
|
|
|
text-align: -moz-center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*************************/
|
|
|
|
/* -- mtr, mtd: rowalign */
|
|
|
|
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowalign="top"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtr[rowalign="top"],
|
|
|
|
mtd[rowalign="top"] {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowalign="bottom"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtr[rowalign="bottom"],
|
|
|
|
mtd[rowalign="bottom"] {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowalign="center"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtr[rowalign="center"],
|
|
|
|
mtd[rowalign="center"] {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowalign="baseline"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtr[rowalign="baseline"],
|
|
|
|
mtd[rowalign="baseline"] {
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
/* -- not yet supported --
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowalign="axis"],
|
2007-03-22 10:30:00 -07:00
|
|
|
mtr[rowalign="axis"],
|
|
|
|
mtd[rowalign="axis"] {
|
|
|
|
vertical-align: mathline;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
/* rules to achieve the default spacing between cells. The back-end code
|
|
|
|
will set the internal attributes depending on the cell's position.
|
|
|
|
These rules are hard-coded, the comments indicate what would be
|
|
|
|
desirable if the style data could be changed on the fly to pick
|
|
|
|
the values that users may set with the attributes of <mtable> */
|
|
|
|
mtd {
|
|
|
|
padding-right: 0.4em; /* half of columnspacing[colindex] */
|
|
|
|
padding-left: 0.4em; /* half of columnspacing[colindex-1] */
|
|
|
|
padding-bottom: 0.5ex; /* half of rowspacing[rowindex] */
|
|
|
|
padding-top: 0.5ex; /* half of rowspacing[rowindex-1] */
|
|
|
|
}
|
|
|
|
/* turn off the spacing at the periphery of boundary cells */
|
|
|
|
mtr:first-child > mtd {
|
|
|
|
padding-top: 0ex;
|
|
|
|
}
|
|
|
|
mtr:last-child > mtd {
|
|
|
|
padding-bottom: 0ex;
|
|
|
|
}
|
|
|
|
mtd:first-child {
|
|
|
|
padding-left: 0em;
|
|
|
|
}
|
|
|
|
mtd:last-child {
|
|
|
|
padding-right: 0em;
|
|
|
|
}
|
|
|
|
/* re-instate the spacing if the table has a surrounding frame */
|
|
|
|
mtable[frame="solid"] > mtr:first-child > mtd,
|
|
|
|
mtable[frame="dashed"] > mtr:first-child > mtd {
|
|
|
|
padding-top: 0.5ex; /* framespacing.top */
|
|
|
|
}
|
|
|
|
mtable[frame="solid"] > mtr:last-child > mtd,
|
|
|
|
mtable[frame="dashed"] > mtr:last-child > mtd {
|
|
|
|
padding-bottom: 0.5ex; /* framespacing.bottom */
|
|
|
|
}
|
|
|
|
mtable[frame="solid"] > mtr > mtd:first-child,
|
|
|
|
mtable[frame="dashed"] > mtr > mtd:first-child {
|
|
|
|
padding-left: 0.4em; /* framespacing.left */
|
|
|
|
}
|
|
|
|
mtable[frame="solid"] > mtr > mtd:last-child,
|
|
|
|
mtable[frame="dashed"] > mtr > mtd:last-child {
|
|
|
|
padding-right: 0.4em; /* framespacing.right */
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
/* internal settings to support 'rowlines' and 'columnlines'. To
|
|
|
|
achieve the recommended behavior, the back-end code will avoid setting
|
|
|
|
unsuitable rules on the cells on the first row and the first column.
|
|
|
|
In general, however, authors can use the 'border' property of CSS to
|
|
|
|
achieve varying effects down to the level of the table cell. */
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowline="none"] > mtd {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-top: none;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowline="solid"] > mtd {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-top: solid thin;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtr[_moz-math-rowline="dashed"] > mtd {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-top: dashed thin;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnline="none"] {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-left: none;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnline="solid"] {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-left: solid thin;
|
|
|
|
}
|
2010-03-10 04:49:33 -08:00
|
|
|
mtd[_moz-math-columnline="dashed"] {
|
2007-03-22 10:30:00 -07:00
|
|
|
border-left: dashed thin;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* Style used for stretchy symbols *must* be normal to avoid misaligments */
|
|
|
|
/* By leaving the font-family empty, the MathML engine will use the value
|
|
|
|
provided by the mathfont-family property in the mathfont.properties file
|
|
|
|
or the value of the user's pref("font.mathfont-family", "...").
|
|
|
|
|
|
|
|
Authors can make elements on a document to be stretched with different
|
|
|
|
fonts, e.g.,
|
|
|
|
|
2011-08-04 18:06:36 -07:00
|
|
|
To request the use of STIX fonts, you can add a <style>...</style> with:
|
|
|
|
<mo myfonts="stix">...</mo> with the associated CSS declaration
|
|
|
|
mo[myfonts="stix"]::-moz-math-stretchy {
|
|
|
|
font-family: STIXNonUnicode, STIXSizeOneSym, STIXSize1, STIXGeneral;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-08-04 18:06:36 -07:00
|
|
|
To request the use of Asana fonts, you can add a <style>...</style> with:
|
|
|
|
<mo myfonts="asana">...</mo> with the associated CSS declaration
|
|
|
|
mo[myfonts="asana"]::-moz-math-stretchy {
|
|
|
|
font-family: Asana Math;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
Of course, if you just want all of the stretchy characters in your
|
|
|
|
document to be stretched with your preferred list, you can just do:
|
|
|
|
::-moz-math-stretchy {
|
|
|
|
font-family: [your-particular-list]
|
|
|
|
}
|
|
|
|
|
|
|
|
Note that like other fonts in the document, users can override this by
|
|
|
|
clicking the pref to override document fonts.
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
::-moz-math-stretchy {
|
|
|
|
font-style: normal;
|
2007-12-04 19:58:09 -08:00
|
|
|
font-family: serif; /* an empty family is ignored as an error and behaves like inherit */
|
2007-03-22 10:30:00 -07:00
|
|
|
/* background-color: #3C6; */
|
|
|
|
}
|
2009-12-10 23:37:40 -08:00
|
|
|
/* Don't actually style -moz-math-anonymous by default */
|
|
|
|
/*
|
2007-03-22 10:30:00 -07:00
|
|
|
::-moz-math-anonymous {
|
|
|
|
}
|
2009-12-10 23:37:40 -08:00
|
|
|
*/
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-12-01 02:11:44 -08:00
|
|
|
/**********************************************************************/
|
|
|
|
/* This is used when wrapping non-MathML inline elements inside math. */
|
2007-04-20 14:27:02 -07:00
|
|
|
*|*::-moz-mathml-anonymous-block {
|
2007-12-01 02:11:44 -08:00
|
|
|
display: inline-block !important;
|
2007-04-20 14:27:02 -07:00
|
|
|
position: static !important;
|
2008-03-06 19:47:11 -08:00
|
|
|
text-indent: 0;
|
2007-04-20 14:27:02 -07:00
|
|
|
}
|
2008-01-09 01:38:28 -08:00
|
|
|
|
|
|
|
/*****************************************/
|
|
|
|
/* Controlling scriptlevel */
|
|
|
|
/*****************************************/
|
|
|
|
|
|
|
|
/* mfrac, munder, mover and munderover change the scriptlevels of their children using
|
|
|
|
-moz-math-increment-script-level because regular CSS rules are insufficient to
|
|
|
|
control when the scriptlevel should be incremented */
|
|
|
|
:-moz-math-increment-script-level { -moz-script-level:+1; }
|
|
|
|
|
|
|
|
/* all other cases can be described using regular CSS, so we do it this way because it's
|
|
|
|
more efficient and less code */
|
|
|
|
mroot > :not(:first-child) { -moz-script-level:+2; }
|
|
|
|
|
|
|
|
msub > :not(:first-child),
|
|
|
|
msup > :not(:first-child),
|
|
|
|
msubsup > :not(:first-child),
|
|
|
|
mmultiscripts > :not(:first-child) { -moz-script-level:+1; }
|