forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make MathML length, dir, display, displaystyle and mathvariant case i…
…nsensitive. See w3c/mathml#22 * mathml/relations/css-styling/attribute-mapping-001.html (length, dir) * mathml/relations/html5-tree/display-1.html (display) * mathml/relations/css-styling/displaystyle-1.html (displaystyle) * mathml/relations/css-styling/displaystyle-2.html (displaystyle) * mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant) layout/reftests/bugs/355548-3.xml has been updated now that units are case insensitive. Note: * mathml/relations/css-styling/attribute-mapping-002.html also checks case insensitiveness of mathvariant and displaystyle but for now we map these attributes to internal -moz-* CSS properties. * mathcolor and mathbackground values are already case insensitive, this is verified by mathml/relations/css-styling/attribute-mapping-001.html Differential Revision: https://phabricator.services.mozilla.com/D42081 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1574087 gecko-commit: 2213833fcec3e1b7444a29d1ed038f39a3141cf7 gecko-integration-branch: autoland gecko-reviewers: emilio
- Loading branch information
1 parent
5aa4074
commit 94c28d9
Showing
2 changed files
with
331 additions
and
0 deletions.
There are no files selected for viewing
163 changes: 163 additions & 0 deletions
163
mathml/relations/css-styling/mathvariant-case-sensitivity-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,163 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>mathvariant case sensitivity</title> | ||
<style> | ||
@font-face { | ||
font-family: mathvariant-bold-fraktur; | ||
src: url("/fonts/math/mathvariant-bold-fraktur.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold; | ||
src: url("/fonts/math/mathvariant-bold.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-italic; | ||
src: url("/fonts/math/mathvariant-bold-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-sans-serif; | ||
src: url("/fonts/math/mathvariant-bold-sans-serif.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-script; | ||
src: url("/fonts/math/mathvariant-bold-script.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-double-struck; | ||
src: url("/fonts/math/mathvariant-double-struck.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-fraktur; | ||
src: url("/fonts/math/mathvariant-fraktur.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-initial; | ||
src: url("/fonts/math/mathvariant-initial.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-italic; | ||
src: url("/fonts/math/mathvariant-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-looped; | ||
src: url("/fonts/math/mathvariant-looped.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-monospace; | ||
src: url("/fonts/math/mathvariant-monospace.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif-bold-italic; | ||
src: url("/fonts/math/mathvariant-sans-serif-bold-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif; | ||
src: url("/fonts/math/mathvariant-sans-serif.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif-italic; | ||
src: url("/fonts/math/mathvariant-sans-serif-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-script; | ||
src: url("/fonts/math/mathvariant-script.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-stretched; | ||
src: url("/fonts/math/mathvariant-stretched.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-tailed; | ||
src: url("/fonts/math/mathvariant-tailed.woff"); | ||
} | ||
</style> | ||
<body> | ||
<p> | ||
<math style="font-family: mathvariant-bold-fraktur"> | ||
<mtext>𝕬</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold"> | ||
<mtext>𝐀</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-italic"> | ||
<mtext>𝑨</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-sans-serif"> | ||
<mtext>𝗔</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-script"> | ||
<mtext>𝓐</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-double-struck"> | ||
<mtext>𝔸</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-fraktur"> | ||
<mtext>𝔄</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-initial"> | ||
<mtext>𞸰</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-italic"> | ||
<mtext>𝐴</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-looped"> | ||
<mtext>𞺐</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-monospace"> | ||
<mtext>𝙰</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif-bold-italic"> | ||
<mtext>𝘼</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif"> | ||
<mtext>𝖠</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif-italic"> | ||
<mtext>𝘈</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-script"> | ||
<mtext>𝒜</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-stretched"> | ||
<mtext>𞹰</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-tailed"> | ||
<mtext>𞹒</mtext> | ||
</math> | ||
</p> | ||
</body> | ||
</html> |
168 changes: 168 additions & 0 deletions
168
mathml/relations/css-styling/mathvariant-case-sensitivity.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,168 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>mathvariant case sensitivity</title> | ||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#css-styling"> | ||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-mathvariant-attribute"> | ||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#new-text-transform-values"> | ||
<link rel="match" href="mathvariant-case-sensitivity-ref.html"/> | ||
<meta name="assert" content="Verify that mathvariant value is case insensitive"> | ||
<style> | ||
@font-face { | ||
font-family: mathvariant-bold-fraktur; | ||
src: url("/fonts/math/mathvariant-bold-fraktur.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold; | ||
src: url("/fonts/math/mathvariant-bold.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-italic; | ||
src: url("/fonts/math/mathvariant-bold-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-sans-serif; | ||
src: url("/fonts/math/mathvariant-bold-sans-serif.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-bold-script; | ||
src: url("/fonts/math/mathvariant-bold-script.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-double-struck; | ||
src: url("/fonts/math/mathvariant-double-struck.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-fraktur; | ||
src: url("/fonts/math/mathvariant-fraktur.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-initial; | ||
src: url("/fonts/math/mathvariant-initial.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-italic; | ||
src: url("/fonts/math/mathvariant-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-looped; | ||
src: url("/fonts/math/mathvariant-looped.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-monospace; | ||
src: url("/fonts/math/mathvariant-monospace.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif-bold-italic; | ||
src: url("/fonts/math/mathvariant-sans-serif-bold-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif; | ||
src: url("/fonts/math/mathvariant-sans-serif.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-sans-serif-italic; | ||
src: url("/fonts/math/mathvariant-sans-serif-italic.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-script; | ||
src: url("/fonts/math/mathvariant-script.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-stretched; | ||
src: url("/fonts/math/mathvariant-stretched.woff"); | ||
} | ||
@font-face { | ||
font-family: mathvariant-tailed; | ||
src: url("/fonts/math/mathvariant-tailed.woff"); | ||
} | ||
</style> | ||
<body> | ||
<p> | ||
<math style="font-family: mathvariant-bold-fraktur"> | ||
<mtext mathvariant="BoLd-fRaKtUr">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold"> | ||
<mtext mathvariant="BoLd">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-italic"> | ||
<mtext mathvariant="BoLd-iTaLiC">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-sans-serif"> | ||
<mtext mathvariant="BoLd-sAnS-SeRiF">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-bold-script"> | ||
<mtext mathvariant="BoLd-sCrIpT">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-double-struck"> | ||
<mtext mathvariant="DoUbLe-sTrUcK">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-fraktur"> | ||
<mtext mathvariant="FrAkTuR">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-initial"> | ||
<mtext mathvariant="InItIaL">ف</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-italic"> | ||
<mtext mathvariant="ItAlIc">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-looped"> | ||
<mtext mathvariant="LoOpEd">ف</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-monospace"> | ||
<mtext mathvariant="MoNoSpAcE">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif-bold-italic"> | ||
<mtext mathvariant="SaNs-sErIf-bOlD-ItAlIc">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif"> | ||
<mtext mathvariant="SaNs-sErIf">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-sans-serif-italic"> | ||
<mtext mathvariant="SaNs-sErIf-iTaLiC">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-script"> | ||
<mtext mathvariant="ScRiPt">A</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-stretched"> | ||
<mtext mathvariant="StReTcHeD">ف</mtext> | ||
</math> | ||
</p> | ||
<p> | ||
<math style="font-family: mathvariant-tailed"> | ||
<mtext mathvariant="TaIlEd">ق</mtext> | ||
</math> | ||
</p> | ||
</body> | ||
</html> |