зеркало из https://github.com/mozilla/gecko-dev.git
Bug 363240 - incorrect MathML <mtable> width and position (nsMathMLContainerFrames have zero preferred width Test widths of table cells with msqrt, mfenced, and stretchy mo, and mo with l/rspace.
This commit is contained in:
Родитель
893656978c
Коммит
27dbec1062
|
@ -1,2 +1,3 @@
|
|||
== mi-mathvariant-1.xhtml mi-mathvariant-1-ref.xhtml
|
||||
== mi-mathvariant-2.xhtml mi-mathvariant-2-ref.xhtml
|
||||
== table-width-1.xhtml table-width-1-ref.xhtml
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<style type="text/css">
|
||||
html { background-color: grey; }
|
||||
td { border: 1px solid white;
|
||||
padding: 0;
|
||||
background-color: black;
|
||||
color: red; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mphantom>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mn>3</mn>
|
||||
<mo>=</mo>
|
||||
<mo>5</mo>
|
||||
</msqrt>
|
||||
</mphantom>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
<!-- uncomment when bug 363240 attachment 311725 is checked in: table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mphantom>
|
||||
<mroot>
|
||||
<mtable>
|
||||
<mtr><mtd><mn>8</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>9</mn></mtd></mtr>
|
||||
</mtable>
|
||||
<mn>6</mn>
|
||||
</mroot>
|
||||
</mphantom>
|
||||
</math>
|
||||
</td>
|
||||
</table-->
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mphantom>
|
||||
<mfenced>
|
||||
<mfrac>
|
||||
<mn>0</mn>
|
||||
<mn>90</mn>
|
||||
</mfrac>
|
||||
</mfenced>
|
||||
</mphantom>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mphantom>
|
||||
<mo>{</mo>
|
||||
<mtable>
|
||||
<mtr><mtd><mn>0</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>5</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>9</mn></mtd></mtr>
|
||||
</mtable>
|
||||
<mo>}</mo>
|
||||
</mphantom>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,67 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Check that the content box is large enough</title>
|
||||
<style type="text/css">
|
||||
html { background-color: grey; }
|
||||
td { border: 1px solid white;
|
||||
padding: 0;
|
||||
background-color: black;
|
||||
color: black; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mn>3</mn>
|
||||
<mo>=</mo>
|
||||
<mo>5</mo>
|
||||
</msqrt>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
<!-- uncomment when bug 363240 attachment 311725 is checked in: table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mroot>
|
||||
<mtable>
|
||||
<mtr><mtd><mn>8</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>9</mn></mtd></mtr>
|
||||
</mtable>
|
||||
<mn>6</mn>
|
||||
</mroot>
|
||||
</math>
|
||||
</td>
|
||||
</table-->
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mfenced>
|
||||
<mfrac>
|
||||
<mn>0</mn>
|
||||
<mn>90</mn>
|
||||
</mfrac>
|
||||
</mfenced>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
<table>
|
||||
<td>
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mrow>
|
||||
<mo>{</mo>
|
||||
<mtable>
|
||||
<mtr><mtd><mn>0</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>5</mn></mtd></mtr>
|
||||
<mtr><mtd><mn>9</mn></mtd></mtr>
|
||||
</mtable>
|
||||
<mo>}</mo>
|
||||
</mrow>
|
||||
</math>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче