Skip to content

Commit f6d8412

Browse files
fred-wangchromium-wpt-export-bot
authored andcommitted
[mathml] Adjust padding for invalid fractions reftests
The invalid fraction reftests compare an <mfrac> with an invalid number of children against an <mrow> with the same children, in order to test this statement from [1]: "If the <mfrac> element has less or more than two in-flow children, its layout algorithm is the same as the <mrow> element." However, the same section indicates just above a default padding for mfrac elements, so the reftests can't match. This CL fixes that by making the reference set these padding values to 1px. [1] https://w3c.github.io/mathml-core/#fractions-mfrac Bug: 6606 Change-Id: I598e2cdd743c440774ac3b3ecb43cb8c84c59b3e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3015322 Reviewed-by: Manuel Rego <[email protected]> Commit-Queue: Frédéric Wang <[email protected]> Cr-Commit-Position: refs/heads/master@{#899960}
1 parent 3895648 commit f6d8412

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mathml/presentation-markup/fractions/frac-invalid-2-ref.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<p>This test passes if you see a single rectangle.</p>
99
<math>
10-
<mrow>
10+
<mrow style="padding-inline-start: 1px; padding-inline-end: 1px;">
1111
<mspace width="200px" height="200px" style="background: green"></mspace>
1212
</mrow>
1313
</math>

mathml/presentation-markup/fractions/frac-invalid-3-ref.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<p>This test passes if you see a single rectangle.</p>
99
<math>
10-
<mrow>
10+
<mrow style="padding-inline-start: 1px; padding-inline-end: 1px;">
1111
<mspace width="50px" height="200px" style="background: green"></mspace>
1212
<mspace width="50px" height="200px" style="background: green"></mspace>
1313
<mspace width="100px" height="200px" style="background: green"></mspace>

mathml/presentation-markup/fractions/frac-invalid-ref.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<p>This test passes if mfrac renders nothing.</p>
99
<math>
10-
<mrow>
10+
<mrow style="padding-inline-start: 1px; padding-inline-end: 1px;">
1111
</mrow>
1212
</math>
1313
</body>

0 commit comments

Comments
 (0)