Bug 1281424 - Reftest to check that text-orientation:upright does not override bidi in sideways-* modes. r=xidorn
authorJonathan Kew <jkew@mozilla.com>
Mon, 27 Jun 2016 18:39:47 +0100
changeset 381542 0f0ef528a365084479353b52accf835fea7dcdd2
parent 381541 0e8426231b72c1f6d1b8fd56b4c4055147e3a99a
child 381543 396fa6e37beb6c65514ae7701262749e10d49b70
child 381870 c03371049b8602d22188c0bf733eb8407754af17
push id21504
push userbmo:npang@mozilla.com
push dateMon, 27 Jun 2016 18:10:09 +0000
reviewersxidorn
bugs1281424
milestone50.0a1
Bug 1281424 - Reftest to check that text-orientation:upright does not override bidi in sideways-* modes. r=xidorn
layout/reftests/w3c-css/submitted/writing-modes-3/reftest.list
layout/reftests/w3c-css/submitted/writing-modes-3/text-orientation-upright-directionality-001-ref.html
layout/reftests/w3c-css/submitted/writing-modes-3/text-orientation-upright-directionality-001.html
--- a/layout/reftests/w3c-css/submitted/writing-modes-3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/writing-modes-3/reftest.list
@@ -6,8 +6,10 @@ default-preferences pref(layout.css.text
 == text-combine-upright-compression-002.html text-combine-upright-compression-002-ref.html
 == text-combine-upright-compression-003.html text-combine-upright-compression-003-ref.html
 == text-combine-upright-compression-004.html text-combine-upright-compression-004-ref.html
 == text-combine-upright-compression-005.html text-combine-upright-compression-005-ref.html
 == text-combine-upright-compression-005a.html text-combine-upright-compression-005-ref.html
 == text-combine-upright-compression-006.html text-combine-upright-compression-006-ref.html
 == text-combine-upright-compression-006a.html text-combine-upright-compression-006-ref.html
 == text-combine-upright-compression-007.html text-combine-upright-compression-007-ref.html
+
+== text-orientation-upright-directionality-001.html text-orientation-upright-directionality-001-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/writing-modes-3/text-orientation-upright-directionality-001-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Reference: text-orientation:upright in sideways-* writing modes</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jfkthame@gmail.com">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">
+</head>
+<body style="font: 24px sans-serif">
+<p>The two sideways-rl lines should be identical:
+<div style="writing-mode:sideways-rl">
+  <p>hello العربي world עברית</p>
+  <p>hello العربي world עברית</p>
+</div>
+<p>The two sideways-lr lines should be identical:
+<div style="writing-mode:sideways-lr">
+  <p>hello العربي world עברית</p>
+  <p>hello العربي world עברית</p>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/writing-modes-3/text-orientation-upright-directionality-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Test: text-orientation:upright in sideways-* writing modes</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jfkthame@gmail.com">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">
+<link rel="match" href="text-orientation-upright-directionality-001-ref.html">
+<meta name="assert" content="text-orientation has no effect in horizontal typographic modes">
+</head>
+<body style="font: 24px sans-serif">
+<p>The two sideways-rl lines should be identical:
+<div style="writing-mode:sideways-rl">
+  <p>hello العربي world עברית</p>
+  <p style="text-orientation:upright">hello العربي world עברית</p>
+</div>
+<p>The two sideways-lr lines should be identical:
+<div style="writing-mode:sideways-lr">
+  <p>hello العربي world עברית</p>
+  <p style="text-orientation:upright">hello العربي world עברית</p>
+</div>