diff --git a/mozilla/layout/mathml/tests/mathml.css b/mozilla/layout/mathml/tests/mathml.css index af2e9ea8d82..9f4581f3ca1 100644 --- a/mozilla/layout/mathml/tests/mathml.css +++ b/mozilla/layout/mathml/tests/mathml.css @@ -26,18 +26,34 @@ display: block; math, math[mode="inline"] { display: inline; font-family: Symbol, Times; - font-style: normal; + font-style: normal; /* font-weight: bold; */ - font-size: 14pt; +/* font-size: 40pt; */ } math[mode="display"] { display: block; text-align: center; font-family: Symbol, Times; - font-style: normal; + font-style: normal; /* font-weight: bold; */ - font-size: 14pt; +/* font-size: 14pt; */ +} + +*[fontstyle="normal"] { + font-style: normal; +} + +*[fontstyle="italic"] { + font-style: italic; +} + +*[fontweight="normal"] { + font-weight: normal; +} + +*[fontweight="bold"] { + font-weight: bold; } /* @@ -93,34 +109,44 @@ mphantom { mfrac { /* background-color: blue; */ -/* font-size: smaller */ +/* font-size: smaller */ /* border: 1px solid black; */ } msub, msup { -/* background-color: yellow; */ +/* background-color: yellow; */ /* border: 1px solid black; */ /* font-size: small; */ } -/* + mn { - border: 1px solid black; +/* border: 1px solid black; */ } -*/ + mi { color: red; /* font-style: normal; */ /* border: 1px solid blue; */ +/* background-color: yellow; */ } + mo { /* font-style: normal; */ /* border: 1px solid black; */ /* background-color: blue; */ } + +/* +munder, mover, munderover { + background-color: yellow; + border: 1px solid black; +} +*/ + merror { display: block; font-family: sans-serif; @@ -149,7 +175,7 @@ mtable { /* must never set padding in td, th */ mtd { - vertical-align: inherit; + vertical-align: inherit; background-color: inherit; text-align: center; /* border-style: inset; */ @@ -159,19 +185,28 @@ mtd { mtr { display: table-row; - vertical-align: inherit; + vertical-align: middle; background-color: inherit; -valign: baseline; } -:-moz-math-font-style-italic { +mi { font-style: italic; } +mstyle[fontstyle="normal"] mi { + font-style: normal; +} + :-moz-math-font-style-normal { font-style: normal; } +/* +:-moz-math-font-style-italic { + font-style: italic; +} +*/ + :-moz-math-font-size-smaller { font-size: smaller; } diff --git a/mozilla/layout/mathml/tests/maxwell.xml b/mozilla/layout/mathml/tests/maxwell.xml new file mode 100644 index 00000000000..6d4da7f0236 --- /dev/null +++ b/mozilla/layout/mathml/tests/maxwell.xml @@ -0,0 +1,277 @@ + + + + +]> + + + + + + + + Maxwell's Equations + + + +Maxwell's Equations + + + + + + + { + + + + + + × + + + B + + + &vec; + + - + + 1 + c + + + + &partial; + + + E + + + &vec; + + + + &partial; + t + + + + + + = + + + + + + 4 + π + + c + + + + j + + + &vec; + + + + + + + + + ċ + + + E + + + &vec; + + + + + = + + + + 4 + π + ρ + + + + + + + + × + + + E + + + &vec; + + + + + 1 + c + + + + &partial; + + + B + + + &vec; + + + + &partial; + t + + + + + + = + + + + + 0 + + + &vec; + + + + + + + + ċ + + + B + + + &vec; + + + + + = + + + 0 + + + + + + + + +Einstein's field equations + + + + + + + + R + + + + μ + ν + + + + + - + + 1 + 2 + + + g + + + μ + ν + + + + + + R + + = + + + 8 + π + + G + + + + c + + 4 + + + + + T + + + + μ + ν + + + + + + + + + + +