Don't apply text-combine-upright in sideways-* writing modes.

Differential Revision: https://phabricator.services.mozilla.com/D61326

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1612399
gecko-commit: 2e574548c8244ba049b8bcdcd7e0ae66429e5424
gecko-integration-branch: autoland
gecko-reviewers: emilio
diff --git a/css/css-writing-modes/reference/text-combine-upright-sideways-001-ref.html b/css/css-writing-modes/reference/text-combine-upright-sideways-001-ref.html
new file mode 100644
index 0000000..ede62dc
--- /dev/null
+++ b/css/css-writing-modes/reference/text-combine-upright-sideways-001-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>CSS reference file</title>
+<style>
+.test {
+  font: 32px sans-serif;
+  writing-mode: sideways-rl;
+}
+</style>
+<body lang="zh">
+<p>Test passes if the digits are NOT rotated or compressed to appear horizontally</p>
+<div class="test">中文1234中文</div>
diff --git a/css/css-writing-modes/reference/text-combine-upright-sideways-002-ref.html b/css/css-writing-modes/reference/text-combine-upright-sideways-002-ref.html
new file mode 100644
index 0000000..390d37d
--- /dev/null
+++ b/css/css-writing-modes/reference/text-combine-upright-sideways-002-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>CSS reference file</title>
+<style>
+.test {
+  font: 32px sans-serif;
+  writing-mode: sideways-lr;
+}
+</style>
+<body>
+<p>Test passes if the digits are NOT rotated or compressed to appear horizontally</p>
+<div class="test">AB123CD</div>
diff --git a/css/css-writing-modes/text-combine-upright-sideways-001.html b/css/css-writing-modes/text-combine-upright-sideways-001.html
new file mode 100644
index 0000000..8fa22a7
--- /dev/null
+++ b/css/css-writing-modes/text-combine-upright-sideways-001.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>CSS test: text-combine-upright has no effect in sideways writing mode</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"/>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-combine-upright"/>
+<link rel="match" href="reference/text-combine-upright-sideways-001-ref.html"/>
+<style>
+.test {
+  font: 32px sans-serif;
+  writing-mode: sideways-rl;
+}
+.combined {
+  text-combine-upright: all;
+}
+</style>
+<body lang="zh">
+<p>Test passes if the digits are NOT rotated or compressed to appear horizontally</p>
+<div class="test">中文<span class="combined">1234</span>中文</div>
diff --git a/css/css-writing-modes/text-combine-upright-sideways-002.html b/css/css-writing-modes/text-combine-upright-sideways-002.html
new file mode 100644
index 0000000..4d56220
--- /dev/null
+++ b/css/css-writing-modes/text-combine-upright-sideways-002.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>CSS test: text-combine-upright has no effect in sideways writing mode</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"/>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-combine-upright"/>
+<link rel="match" href="reference/text-combine-upright-sideways-002-ref.html"/>
+<style>
+.test {
+  font: 32px sans-serif;
+  writing-mode: sideways-lr;
+}
+.combined {
+  text-combine-upright: all;
+}
+</style>
+<body>
+<p>Test passes if the digits are NOT rotated or compressed to appear horizontally</p>
+<div class="test">AB<span class="combined">123</span>CD</div>