Skip to content

Commit

Permalink
Bug 1574087. Make MathML length, dir, display, displaystyle and mathv…
Browse files Browse the repository at this point in the history
…ariant case insensitive. r=emilio

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)

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

UltraBlame original commit: 1dccb45167d39cb443d42afc46fab8ad55426af5
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent f054071 commit a4a5240
Show file tree
Hide file tree
Showing 8 changed files with 2,797 additions and 1,309 deletions.
22 changes: 11 additions & 11 deletions dom/mathml/nsMathMLElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
em
Expand All @@ -1801,7 +1801,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
ex
Expand All @@ -1817,7 +1817,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
px
Expand All @@ -1833,7 +1833,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
in
Expand All @@ -1849,7 +1849,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
cm
Expand All @@ -1865,7 +1865,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
mm
Expand All @@ -1881,7 +1881,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
pt
Expand All @@ -1897,7 +1897,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
pc
Expand All @@ -1913,7 +1913,7 @@ if
(
unit
.
EqualsLiteral
LowerCaseEqualsLiteral
(
"
q
Expand Down Expand Up @@ -3243,7 +3243,7 @@ if
(
str
.
EqualsASCII
LowerCaseEqualsASCII
(
sizes
[
Expand Down Expand Up @@ -3680,7 +3680,7 @@ if
(
str
.
EqualsASCII
LowerCaseEqualsASCII
(
dirs
[
Expand Down
7 changes: 7 additions & 0 deletions layout/mathml/mathml.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ display
"
block
"
i
]
{
display
Expand Down Expand Up @@ -146,6 +147,7 @@ display
"
inline
"
i
]
{
display
Expand All @@ -169,6 +171,7 @@ displaystyle
"
false
"
i
]
{
-
Expand All @@ -188,6 +191,7 @@ displaystyle
"
true
"
i
]
{
-
Expand Down Expand Up @@ -831,6 +835,7 @@ displaystyle
"
false
"
i
]
{
-
Expand All @@ -850,6 +855,7 @@ displaystyle
"
true
"
i
]
{
-
Expand Down Expand Up @@ -1060,6 +1066,7 @@ displaystyle
"
true
"
i
]
{
-
Expand Down
Loading

0 comments on commit a4a5240

Please sign in to comment.