+
+ HTML Test: dir=auto, start with EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123ABCאבג.
+
+
+
123ABCאבג.
+
+
+
+
+
123ABCאבג.
+
+
+
123ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html
new file mode 100644
index 00000000000..57f074a2bc1
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123ABCאבג.
+
+
+
123ABCאבג.
+
+
+
+
+
123ABCאבג.
+
+
+
123ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html
new file mode 100644
index 00000000000..d695e5ab570
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with EN, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123אבגABC.
+
+
+
123אבגABC.
+
+
+
+
+
123אבגABC.
+
+
+
123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html
new file mode 100644
index 00000000000..1ab3112440f
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with EN, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123אבגABC.
+
+
+
123אבגABC.
+
+
+
+
+
123אבגABC.
+
+
+
123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html
new file mode 100644
index 00000000000..64b178d7b59
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-L.html b/layout/reftests/bidi/dirAuto/dir_auto-L.html
new file mode 100644
index 00000000000..1da642cc19b
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-L.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html
new file mode 100644
index 00000000000..71da52633ea
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=123ABCאבג.
+
+
+
.-=123ABCאבג.
+
+
+
+
+
.-=123ABCאבג.
+
+
+
.-=123ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html
new file mode 100644
index 00000000000..9372a42628d
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=123ABCאבג.
+
+
+
.-=123ABCאבג.
+
+
+
+
+
.-=123ABCאבג.
+
+
+
.-=123ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html
new file mode 100644
index 00000000000..856a6ee3e2e
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=123אבגABC.
+
+
+
.-=123אבגABC.
+
+
+
+
+
.-=123אבגABC.
+
+
+
.-=123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html
new file mode 100644
index 00000000000..4f0126b1a48
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=123אבגABC.
+
+
+
.-=123אבגABC.
+
+
+
+
+
.-=123אבגABC.
+
+
+
.-=123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html
new file mode 100644
index 00000000000..df0339f1342
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html
@@ -0,0 +1,51 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
@123!
+
+
+
@123!
+
+
+
+
+
@123!
+
+
+
@123!
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html
new file mode 100644
index 00000000000..a7c6db6d6a7
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html
@@ -0,0 +1,51 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then EN, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
@123!
+
+
+
@123!
+
+
+
+
+
@123!
+
+
+
@123!
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html
new file mode 100644
index 00000000000..818b9c0e674
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=ABCאבג.
+
+
+
.-=ABCאבג.
+
+
+
+
+
.-=ABCאבג.
+
+
+
.-=ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-N-L.html
new file mode 100644
index 00000000000..eab63560c7b
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-L.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=ABCאבג.
+
+
+
.-=ABCאבג.
+
+
+
+
+
.-=ABCאבג.
+
+
+
.-=ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html
new file mode 100644
index 00000000000..a2c82541a55
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=אבגABC.
+
+
+
.-=אבגABC.
+
+
+
+
+
.-=אבגABC.
+
+
+
.-=אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-N-R.html
new file mode 100644
index 00000000000..352b8f80a7d
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-N-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with N, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
.-=אבגABC.
+
+
+
.-=אבגABC.
+
+
+
+
+
.-=אבגABC.
+
+
+
.-=אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html
new file mode 100644
index 00000000000..61ff12f2f8f
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: dir=auto, start with R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-R.html b/layout/reftests/bidi/dirAuto/dir_auto-R.html
new file mode 100644
index 00000000000..52677931cab
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html
new file mode 100644
index 00000000000..9048362d0a7
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html
@@ -0,0 +1,62 @@
+
+
+
+
+ HTML Test: dir=auto, start with L within contained element
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+ ז - The Hebrew letter Zayin (strongly RTL).
+
+
+
+
ABCאבג.
דה
ו
+
+
+
ABCאבג.
דה
ו
+
+
+
+
+
ABCאבג.
דה
ו
+
+
+
ABCאבג.
דה
ו
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html
new file mode 100644
index 00000000000..994bfbe7845
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html
@@ -0,0 +1,62 @@
+
+
+
+
+ HTML Test: dir=auto, start with L within contained element
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+ ז - The Hebrew letter Zayin (strongly RTL).
+
+
+
+
ABCאבג.
דה
ו
+
+
+
ABCאבג.
דה
ו
+
+
+
+
+
ABCאבג.
דה
ו
+
+
+
ABCאבג.
דה
ו
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html
new file mode 100644
index 00000000000..0cee718c43d
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with R within contained element
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
XY
Z
+
+
+
אבגABC.
XY
Z
+
+
+
+
+
אבגABC.
XY
Z
+
+
+
אבגABC.
XY
Z
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html
new file mode 100644
index 00000000000..113eb073cca
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with R within contained element
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
XY
Z
+
+
+
אבגABC.
XY
Z
+
+
+
+
+
אבגABC.
XY
Z
+
+
+
אבגABC.
XY
Z
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html
new file mode 100644
index 00000000000..745eea114eb
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html
@@ -0,0 +1,64 @@
+
+
+
+
+ HTML Test: dir=auto, start with bdi, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
123דהוABCאבג.
+
+
+
123דהוABCאבג.
+
+
+
+
+
123דהוABCאבג.
+
+
+
123דהוABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html
new file mode 100644
index 00000000000..cd0292c5cf4
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html
@@ -0,0 +1,64 @@
+
+
+
+
+ HTML Test: dir=auto, start with bdi, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
123דהוABCאבג.
+
+
+
123דהוABCאבג.
+
+
+
+
+
123דהוABCאבג.
+
+
+
123דהוABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html
new file mode 100644
index 00000000000..43405ea6e79
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with bdi, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123DEFאבגABC.
+
+
+
123DEFאבגABC.
+
+
+
+
+
123DEFאבגABC.
+
+
+
123DEFאבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html
new file mode 100644
index 00000000000..cce36bddf2a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with bdi, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
123DEFאבגABC.
+
+
+
123DEFאבגABC.
+
+
+
+
+
123DEFאבגABC.
+
+
+
123DEFאבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html
new file mode 100644
index 00000000000..d5935d83f61
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html
new file mode 100644
index 00000000000..292c753fdd1
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html
new file mode 100644
index 00000000000..5ae48d89704
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
DEF
אבגABC.
+
+
+
DEF
אבגABC.
+
+
+
+
+
DEF
אבגABC.
+
+
+
DEF
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html
new file mode 100644
index 00000000000..cc625553f82
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
DEF
אבגABC.
+
+
+
DEF
אבגABC.
+
+
+
+
+
DEF
אבגABC.
+
+
+
DEF
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html
new file mode 100644
index 00000000000..ac1f178799a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir=auto, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html
new file mode 100644
index 00000000000..892894e8e99
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir=auto, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
+
דהו
ABCאבג.
+
+
+
דהו
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html
new file mode 100644
index 00000000000..d7157de5c89
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir=auto, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
DEF
.-=123אבגABC.
+
+
+
DEF
.-=123אבגABC.
+
+
+
+
+
DEF
.-=123אבגABC.
+
+
+
DEF
.-=123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html
new file mode 100644
index 00000000000..328104cb878
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with dir=auto, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
DEF
.-=123אבגABC.
+
+
+
DEF
.-=123אבגABC.
+
+
+
+
+
DEF
.-=123אבגABC.
+
+
+
DEF
.-=123אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html
new file mode 100644
index 00000000000..ad844fd1da2
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with script, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html
new file mode 100644
index 00000000000..d5e685ee0eb
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with script, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html
new file mode 100644
index 00000000000..8225443c86a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with script, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html
new file mode 100644
index 00000000000..4d131a2d480
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with script, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html
new file mode 100644
index 00000000000..46e71377405
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html
@@ -0,0 +1,70 @@
+
+
+
+
+ HTML Test: dir=auto, start with style, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html
new file mode 100644
index 00000000000..5ad03180f2e
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html
@@ -0,0 +1,70 @@
+
+
+
+
+ HTML Test: dir=auto, start with style, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html
new file mode 100644
index 00000000000..6cf5e1d24b2
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html
@@ -0,0 +1,70 @@
+
+
+
+
+ HTML Test: dir=auto, start with style, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html
new file mode 100644
index 00000000000..133ce1be051
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html
@@ -0,0 +1,70 @@
+
+
+
+
+ HTML Test: dir=auto, start with style, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html
new file mode 100644
index 00000000000..d13f702557a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with textarea, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html
new file mode 100644
index 00000000000..51468ce17c8
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html
@@ -0,0 +1,61 @@
+
+
+
+
+ HTML Test: dir=auto, start with textarea, then L
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+ ד - The Hebrew letter Dalet (strongly RTL).
+ ה - The Hebrew letter He (strongly RTL).
+ ו - The Hebrew letter Vav (strongly RTL).
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
+
ABCאבג.
+
+
+
ABCאבג.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html
new file mode 100644
index 00000000000..ffa5ba5c92c
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with textarea, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html
new file mode 100644
index 00000000000..83875ef58a4
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, start with textarea, then R
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
+
אבגABC.
+
+
+
אבגABC.
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html
new file mode 100644
index 00000000000..cedc14acf02
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html
new file mode 100644
index 00000000000..9d32b7a5908
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html
new file mode 100644
index 00000000000..91c1bf56869
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html
new file mode 100644
index 00000000000..7ac8b11f6c0
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html
new file mode 100644
index 00000000000..a16ecdbd12d
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-L.html
new file mode 100644
index 00000000000..adefc3b8029
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-L.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html
new file mode 100644
index 00000000000..1e68258423b
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html
new file mode 100644
index 00000000000..5ad1d24a14d
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html
new file mode 100644
index 00000000000..fe2ba0b3f71
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html
new file mode 100644
index 00000000000..fba3dda4549
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html
new file mode 100644
index 00000000000..6a9db60ab10
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html
@@ -0,0 +1,54 @@
+
+
+
+
+ HTML Test: input with dir=auto, all N+EN
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html
new file mode 100644
index 00000000000..649beca1a6e
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html
@@ -0,0 +1,54 @@
+
+
+
+
+ HTML Test: input with dir=auto, all N+EN
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html
new file mode 100644
index 00000000000..03b396d4bff
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html
new file mode 100644
index 00000000000..14bd05fb270
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html
new file mode 100644
index 00000000000..474b5c7e762
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html
new file mode 100644
index 00000000000..f78f2898180
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with N+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html
new file mode 100644
index 00000000000..6942d3ffb8a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-R.html
new file mode 100644
index 00000000000..70163671dcf
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-R.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, start with R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html
new file mode 100644
index 00000000000..a58f6c16669
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html
new file mode 100644
index 00000000000..03850c990de
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html
new file mode 100644
index 00000000000..33061e92917
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html
new file mode 100644
index 00000000000..207652d2505
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html
new file mode 100644
index 00000000000..b14ec45e674
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html
new file mode 100644
index 00000000000..6ee4ee471ef
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html
new file mode 100644
index 00000000000..eda0b659dea
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html
new file mode 100644
index 00000000000..50222dd07f0
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+EN+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html
new file mode 100644
index 00000000000..f78ef0bbc9a
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html
new file mode 100644
index 00000000000..e87f8f13bb8
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+EN+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html
new file mode 100644
index 00000000000..b61f677dc71
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html
@@ -0,0 +1,54 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to all N+EN
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html
new file mode 100644
index 00000000000..088036a2551
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html
@@ -0,0 +1,63 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to all N+EN
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html
new file mode 100644
index 00000000000..55ff0d53c43
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html
new file mode 100644
index 00000000000..1f3486c0ed1
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+L
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html
new file mode 100644
index 00000000000..f06f47738ed
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html
new file mode 100644
index 00000000000..941b5514354
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with N+R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html
new file mode 100644
index 00000000000..2b9ea5d7336
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html
@@ -0,0 +1,59 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html
new file mode 100644
index 00000000000..304189e189b
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html
@@ -0,0 +1,68 @@
+
+
+
+
+ HTML Test: input with dir=auto, script assigns to start with R
+
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ ב - The Hebrew letter Bet (strongly RTL).
+ ג - The Hebrew letter Gimel (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html
new file mode 100644
index 00000000000..4583ac2c7a6
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html
@@ -0,0 +1,56 @@
+
+
+
+
+ HTML Test: dir=auto, isolated in LTR text
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+
+
+
+ 1 a! א
+
+
+ a !א 1
+
+
+
+
+ 1 a! א
+
+
+ a !א 1
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-isolate.html b/layout/reftests/bidi/dirAuto/dir_auto-isolate.html
new file mode 100644
index 00000000000..71f929204ed
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-isolate.html
@@ -0,0 +1,58 @@
+
+
+
+
+ HTML Test: dir=auto, isolated in LTR text
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ - The LRO (left-to-right-override) formatting character.
+ - The PDF (pop directional formatting) formatting character; closes LRO.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+@123!
+
+
+
+
+@123!
+
+
+
+
+
+
+@123!
+
+
+
+
+@123!
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html
new file mode 100644
index 00000000000..ed923a908d9
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html
@@ -0,0 +1,66 @@
+
+
+
+
+ HTML Test: pre with dir=auto, all N+EN
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+
+
+
+
+א
+!...
+א
+
+
+
+
+א
+!...
+א
+
+
+
+
+
+
+א
+!...
+א
+
+
+
+
+א
+!...
+א
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html
new file mode 100644
index 00000000000..00115a40100
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html
@@ -0,0 +1,76 @@
+
+
+
+
+ HTML Test: pre with dir=auto, all-N between all-Rs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+ The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
+ despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
+ element as a whole RTL.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+@123!
+@123!
+@123!
+@123!
+
+
+
+
+@123!
+@123!
+@123!
+@123!
+
+
+
+
+
+
+@123!
+@123!
+@123!
+@123!
+
+
+
+
+@123!
+@123!
+@123!
+@123!
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html
new file mode 100644
index 00000000000..46eac9551d4
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html
@@ -0,0 +1,77 @@
+
+
+
+
+ HTML Test: pre with dir=auto, mixed L and R paragraphs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html
new file mode 100644
index 00000000000..fd05e30dec6
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html
@@ -0,0 +1,66 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, all N+EN
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html
new file mode 100644
index 00000000000..d48a6141d87
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html
@@ -0,0 +1,79 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, all-N between all-Rs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+ The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
+ despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
+ element as a whole RTL.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html
new file mode 100644
index 00000000000..db53d8ff43f
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html
@@ -0,0 +1,80 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, mixed L and R paragraphs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html
new file mode 100644
index 00000000000..a622db584b5
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html
@@ -0,0 +1,75 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, script assigns to all N+EN
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html
new file mode 100644
index 00000000000..407e3414fb3
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html
@@ -0,0 +1,84 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, script assigns to all-N between all-Rs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ א - The Hebrew letter Alef (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+ The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
+ despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
+ element as a whole RTL.
+
Test passes if the two boxes below look exactly the same.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html
new file mode 100644
index 00000000000..f5a5ece56f2
--- /dev/null
+++ b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html
@@ -0,0 +1,98 @@
+
+
+
+
+ HTML Test: textarea with dir=auto, script assigns to mixed L and R paragraphs
+
+
+
+
+
+
+
+
+
+
Test passes if the two boxes below look exactly the same.
+
+ Key to entities used below:
+ - LRM, the invisible left-to-right mark (strongly LTR).
+ - RLM, the invisible right-to-left mark (strongly RTL).
+ We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
+ specification states whether text-align:start and text-align:end should obey the paragraph
+ direction or the direction property in a unicode-bidi:plaintext element.
+