-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make MathML boolean attributes ASCII case-insensitive.
This commit ensures MathML boolean attributes (namely displaystyle, mo@stretchy, mo@symmetric, mo@largeop, mo@movablelimits, munder@accentunder, mover@accent, munderover@accent, munderover@accentunder) are ASCII case-insensitive [1]. For displaystyle that was handled in [2]. For mover/munder/munderover attributes, this is covered by a test case from scriptlevel-001.html checking both case-insensitivity and dynamic changes at the same time ; the latter still seems broken, so these checks are moved into separate test cases. For mo attributes, a new WPT test is added. Note that mo@accent, mo@fence, mo@separator are not part of MathML Core (with the two last without visual effect), we make them case-insensitive for consistency but don't bother adding tests for them. [1] https://w3c.github.io/mathml-core/#dfn-boolean used here: [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1574087 Differential Revision: https://phabricator.services.mozilla.com/D218944 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1912435 gecko-commit: 7e71291be84261d2df2606da19bc61ac14f6c207 gecko-reviewers: emilio
- Loading branch information
Showing
3 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
mathml/presentation-markup/operators/mo-boolean-attributes-case-insensitive-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"/> | ||
<title>Test case insensitivity of mo boolean attributes (reference)</title> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<style> | ||
math { | ||
font: 25px/1 Ahem; | ||
} | ||
@font-face { | ||
font-family: operators; | ||
src: url("/fonts/math/operators.woff"); | ||
} | ||
mo { | ||
font-family: operators; | ||
} | ||
</style> | ||
<p> | ||
<math> | ||
<mrow> | ||
<mo symmetric="false" stretchy="false">⥯</mo> | ||
<mspace height="2em"></mspace> | ||
</mrow> | ||
</math> | ||
</p> | ||
<p> | ||
<math> | ||
<mrow> | ||
<mo symmetric="true" stretchy="true">⥯</mo> | ||
<mspace height="1.5em"></mspace> | ||
</mrow> | ||
</math> | ||
</p> | ||
<p> | ||
<math displaystyle="true"> | ||
<mo largeop="false">∑</mo> | ||
</math> | ||
</p> | ||
<p> | ||
<math> | ||
<munder> | ||
<mo movablelimits="false">∑</mo> | ||
<mtext>X</mtext> | ||
</munder> | ||
</math> | ||
</p> |
51 changes: 51 additions & 0 deletions
51
mathml/presentation-markup/operators/mo-boolean-attributes-case-insensitive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"/> | ||
<title>Test case insensitivity of mo boolean attributes</title> | ||
<link rel="help" href="https://w3c.github.io/mathml-core/#operator-fence-separator-or-accent-mo"> | ||
<link rel="help" href="https://w3c.github.io/mathml-core/#dom-and-javascript"> | ||
<meta name="assert" content="Verifies case insensitivity of mo boolean attributes."> | ||
<link rel="match" href="mo-boolean-attributes-case-insensitive-ref.html"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<style> | ||
math { | ||
font: 25px/1 Ahem; | ||
} | ||
@font-face { | ||
font-family: operators; | ||
src: url("/fonts/math/operators.woff"); | ||
} | ||
mo { | ||
font-family: operators; | ||
} | ||
</style> | ||
<p> | ||
<math> | ||
<mrow> | ||
<mo symmetric="false" stretchy="FaLsE">⥯</mo> | ||
<mspace height="2em"></mspace> | ||
</mrow> | ||
</math> | ||
</p> | ||
<p> | ||
<math> | ||
<mrow> | ||
<mo symmetric="TrUe" stretchy="true">⥯</mo> | ||
<mspace height="1.5em"></mspace> | ||
</mrow> | ||
</math> | ||
</p> | ||
<p> | ||
<math displaystyle="true"> | ||
<mo largeop="FALSe">∑</mo> | ||
</math> | ||
</p> | ||
<p> | ||
<math> | ||
<munder> | ||
<mo movablelimits="fALse">∑</mo> | ||
<mtext>X</mtext> | ||
</munder> | ||
</math> | ||
</p> | ||
<script src="/mathml/support/feature-detection.js"></script> | ||
<script>MathMLFeatureDetection.ensure_for_match_reftest("has_munderover");</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters