Bug 1373767 part 0: Adjust reftest "font-inflation-1.html" to allow block-level <math> to form its own font inflation container & have different sizing. r=jfkthame

MozReview-Commit-ID: 6jmVqXoyTRr

--HG--
extra : rebase_source : 21a31b8b11b74ee4cc7f875b5f0519509dda09f7
This commit is contained in:
Daniel Holbert 2017-10-13 14:19:03 -07:00
Родитель ab4cba301b
Коммит b58bf562de
2 изменённых файлов: 18 добавлений и 16 удалений

Просмотреть файл

@ -28,13 +28,7 @@ should have the same size as inline math
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>', display math
<math display="block">
<mrow id="display">
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>
</math>'
or math in a table: '<math><mtable><mtr>
<mtd>
<mrow id="cell">
@ -43,6 +37,14 @@ or math in a table: '<math><mtable><mtr>
</mrow>
</mtd>
</mtr></mtable></math>'
(but not necessarily the same size as block-level math
<math display="block">
<mrow id="display">
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>
because it forms a BFC and hence is its own inflation container.)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

Просмотреть файл

@ -34,11 +34,9 @@
against the reference mtext elements. */
var ref = document.getElementById("ref");
var inline = document.getElementById("inline");
var display = document.getElementById("display");
var cell = document.getElementById("cell");
for (var i = 0; i < ref.children.length; i++) {
verifySize(inline.children[i], ref.children[i]);
verifySize(display.children[i], ref.children[i]);
verifySize(cell.children[i], ref.children[i]);
}
@ -63,13 +61,7 @@ should have the same size as inline math
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>', display math
<math display="block">
<mrow id="display">
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>
</math>'
or math in a table: '<math><mtable><mtr>
<mtd>
<mrow id="cell">
@ -78,6 +70,14 @@ or math in a table: '<math><mtable><mtr>
</mrow>
</mtd>
</mtr></mtable></math>'
(but not necessarily the same size as block-level math
<math display="block">
<mrow id="display">
<mtext style="font-family: dtls-1" mathvariant="fraktur">a</mtext>
<mo>+</mo>
</mrow>
</math>
because it forms a BFC and hence is its own inflation container.)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo