Bug 1187673 - Reset CSS spacing properties on the <math> element. r=jkitch

This commit is contained in:
Frédéric Wang 2015-07-26 02:02:00 +02:00
parent 62839f34fc
commit 9ab0ed5490
4 changed files with 69 additions and 0 deletions

View File

@ -21,6 +21,9 @@ math {
font-size: inherit;
font-style: normal;
font-family: serif;
line-height: normal;
word-spacing: normal;
letter-spacing: normal;
text-rendering: optimizeLegibility;
-moz-float-edge: margin-box;
-moz-math-display: inline;

View File

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS spacing properties</title>
<style type="text/css">
math {
line-height: normal;
word-spacing: normal;
letter-spacing: normal;
}
</style>
</head>
<body>
<p style="line-height: 30pt;
word-spacing: 2em;
letter-spacing: 2em;">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mo>(</mo>
<mtable rowspacing="0pt" columnspacing="0em">
<mtr>
<mtd><mtext>row 1 column 1</mtext></mtd>
<mtd><mtext>row 1 column 2</mtext></mtd>
</mtr>
<mtr>
<mtd><mtext>row 2 column 1</mtext></mtd>
<mtd><mtext>row 2 column 2</mtext></mtd>
</mtr>
</mtable>
<mo>)</mo>
</mrow>
</math>
</p>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS spacing properties</title>
</head>
<body>
<p style="line-height: 30pt;
word-spacing: 2em;
letter-spacing: 2em;">
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mo>(</mo>
<mtable rowspacing="0pt" columnspacing="0em">
<mtr>
<mtd><mtext>row 1 column 1</mtext></mtd>
<mtd><mtext>row 1 column 2</mtext></mtd>
</mtr>
<mtr>
<mtd><mtext>row 2 column 1</mtext></mtd>
<mtd><mtext>row 2 column 2</mtext></mtd>
</mtr>
</mtable>
<mo>)</mo>
</mrow>
</math>
</p>
</body>
</html>

View File

@ -10,6 +10,7 @@ fails == dir-8.html dir-8-ref.html
fails == dir-9.html dir-9-ref.html # Bug 787215
== dir-10.html dir-10-ref.html
random-if((B2G&&browserIsRemote)||Mulet) == dir-11.html dir-11-ref.html # Initial mulet triage: parity with B2G/B2G Desktop
== css-spacing-1.html css-spacing-1-ref.html
== displaystyle-1.html displaystyle-1-ref.html
== displaystyle-2.html displaystyle-2-ref.html
== displaystyle-3.html displaystyle-3-ref.html