Skip to content

Commit 0c9edd3

Browse files
committed
Add test for dir=rtl on mo
1 parent 44943db commit 0c9edd3

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>&lt;mo&gt; RTL direction</title>
5+
<meta charset="utf-8"/>
6+
</head>
7+
<body>
8+
9+
<!-- This checks prefix form in RTL mode. -->
10+
_<math dir="rtl"><mo lspace="0em" rspace="0em">+</mo><mspace width="0.055555555555555em"/><mi>x</mi></math>_
11+
12+
<br/>
13+
14+
<!-- This checks leading and trailing spaces in RTL mode. -->
15+
_<math dir="rtl"><mi>x</mi><mspace width="1em"/><mo lspace="0em" rspace="0em">+</mo><mspace width="2em"/><mi>y</mi></math>_
16+
17+
</body>
18+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8"/>
5+
<title>&lt;mo&gt; RTL direction</title>
6+
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
7+
<meta name="assert" content="Verifies behavior of dir=rtl for mo.">
8+
<link rel="match" href="dir-mo-ref.html">
9+
</head>
10+
<body>
11+
12+
<!-- This checks prefix form in RTL mode. -->
13+
_<math dir="rtl"><mo>+</mo><mi>x</mi></math>_
14+
15+
<br/>
16+
17+
<!-- This checks leading and trailing spaces in RTL mode. -->
18+
_<math dir="rtl"><mi>x</mi><mo lspace="1em" rspace="2em">+</mo><mi>y</mi></math>_
19+
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)