Tests for dir=auto (Bug 548206) from w3c HTML5 test suite, r=smontagu

This commit is contained in:
Matitiahu Allouche 2012-11-20 06:21:14 -08:00
parent 608f139019
commit 7f45c42647
104 changed files with 6326 additions and 0 deletions

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with EN, then L</title>
<link rel="reference" href="dir_auto-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with EN, then L</title>
<link rel="reference" href="dir_auto-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="auto">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with EN, then R</title>
<link rel="reference" href="dir_auto-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with EN, then R</title>
<link rel="reference" href="dir_auto-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="auto">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with L</title>
<link rel="reference" href="dir_auto-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with L</title>
<link rel="reference" href="dir_auto-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="auto">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then L</title>
<link rel="reference" href="dir_auto-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then L</title>
<link rel="reference" href="dir_auto-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="auto">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=123ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then R</title>
<link rel="reference" href="dir_auto-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then R</title>
<link rel="reference" href="dir_auto-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="auto">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then L</title>
<link rel="reference" href="dir_auto-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, ignoring neutrals and numbers.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<p dir="ltr">@123!</p>
</div>
<div dir="rtl">
<p dir="ltr">@123!</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">@123!</p>
</div>
<div dir="rtl">
<p dir="ltr">@123!</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then EN, then L</title>
<link rel="reference" href="dir_auto-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, ignoring neutrals and numbers.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<p dir="auto">@123!</p>
</div>
<div dir="rtl">
<p dir="auto">@123!</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">@123!</p>
</div>
<div dir="rtl">
<p dir="ltr">@123!</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then L</title>
<link rel="reference" href="dir_auto-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then L</title>
<link rel="reference" href="dir_auto-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="auto">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
<div dir="rtl">
<p dir="ltr">.-=ABC&#x05D0;&#x05D1;&#x05D2;.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then R</title>
<link rel="reference" href="dir_auto-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with N, then R</title>
<link rel="reference" href="dir_auto-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="auto">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">.-=&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with R</title>
<link rel="reference" href="dir_auto-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
</div>
<div class="test">
<div dir="ltr">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with R</title>
<link rel="reference" href="dir_auto-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<p dir="auto">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="auto">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
<div dir="rtl">
<p dir="rtl">&#x05D0;&#x05D1;&#x05D2;ABC.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with L within contained element</title>
<link rel="reference" href="dir_auto-contained-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, including text within contained elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
&#x05D6; - The Hebrew letter Zayin (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
<div dir="rtl">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
<div dir="rtl">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with L within contained element</title>
<link rel="reference" href="dir_auto-contained-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, including text within contained elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
&#x05D6; - The Hebrew letter Zayin (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
<div dir="rtl">
<div dir="auto"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
<div dir="rtl">
<div dir="ltr"><div><div>ABC&#x05D0;&#x05D1;&#x05D2;.</div>&#x05D3;&#x05D4;</div>&#x05D5;</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with R within contained element</title>
<link rel="reference" href="dir_auto-contained-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, including text within contained elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
<div dir="rtl">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
<div dir="rtl">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with R within contained element</title>
<link rel="reference" href="dir_auto-contained-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, including text within contained elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
<div dir="rtl">
<div dir="auto"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
<div dir="rtl">
<div dir="rtl"><div><div>&#x05D0;&#x05D1;&#x05D2;ABC.</div>XY</div>Z</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with bdi, then L</title>
<link rel="reference" href="dir_auto-contained-bdi-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR.
The element with dir='auto' contains a bdi element whose first
strong character is RTL. This is ignored by the containing
element, but causes the bdi itself to be resolved as RTL" />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with bdi, then L</title>
<link rel="reference" href="dir_auto-contained-bdi-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR.
The element with dir='auto' contains a bdi element whose first
strong character is RTL. This is ignored by the containing
element, but causes the bdi itself to be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><bdi>123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><bdi>123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><bdi dir="rtl">123&#x05D3;&#x05D4;&#x05D5;</bdi>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with bdi, then R</title>
<link rel="reference" href="dir_auto-contained-bdi-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL.
The element with dir='auto' contains a bdi element whose first
strong character is LTR. This is ignored by the containing
element, but causes the bdi itself to be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with bdi, then R</title>
<link rel="reference" href="dir_auto-contained-bdi-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL.
The element with dir='auto' contains a bdi element whose first
strong character is LTR. This is ignored by the containing
element, but causes the bdi itself to be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><bdi>123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><bdi>123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><bdi dir="ltr">123DEF</bdi>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir, then L</title>
<link rel="reference" href="dir_auto-contained-dir-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir, then L</title>
<link rel="reference" href="dir_auto-contained-dir-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir, then R</title>
<link rel="reference" href="dir_auto-contained-dir-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir, then R</title>
<link rel="reference" href="dir_auto-contained-dir-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir=auto, then L</title>
<link rel="reference" href="dir_auto-contained-dir_auto-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir=auto, then L</title>
<link rel="reference" href="dir_auto-contained-dir_auto-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><p dir="auto">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><p dir="auto">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><p dir="rtl">&#x05D3;&#x05D4;&#x05D5;</p>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir=auto, then R</title>
<link rel="reference" href="dir_auto-contained-dir_auto-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with dir=auto, then R</title>
<link rel="reference" href="dir_auto-contained-dir_auto-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text while ignoring contained elements with an explicit dir of their own.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><p dir="auto">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><p dir="auto">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><p dir="ltr">DEF</p>.-=123&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with script, then L</title>
<link rel="reference" href="dir_auto-contained-script-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant script elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with script, then L</title>
<link rel="reference" href="dir_auto-contained-script-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant script elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><script>&#x05D0; = 3;</script>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with script, then R</title>
<link rel="reference" href="dir_auto-contained-script-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant script elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with script, then R</title>
<link rel="reference" href="dir_auto-contained-script-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant script elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><script>x = 3;</script>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with style, then L</title>
<link rel="reference" href="dir_auto-contained-style-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant style elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with style, then L</title>
<link rel="reference" href="dir_auto-contained-style-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant style elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><style>input, textarea {
font-size:1em;
}
body {color:red;}</style>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with style, then R</title>
<link rel="reference" href="dir_auto-contained-style-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant style elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with style, then R</title>
<link rel="reference" href="dir_auto-contained-style-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant style elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><style>input, textarea {
font-size:1em;
}
body {color:blue;}</style>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with textarea, then L</title>
<link rel="reference" href="dir_auto-contained-textarea-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant textarea elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with textarea, then L</title>
<link rel="reference" href="dir_auto-contained-textarea-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant textarea elements.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
&#x05D3; - The Hebrew letter Dalet (strongly RTL).
&#x05D4; - The Hebrew letter He (strongly RTL).
&#x05D5; - The Hebrew letter Vav (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="auto"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
<div dir="rtl">
<div dir="ltr"><textarea>&#x05D3;&#x05D4;&#x05D5;</textarea>ABC&#x05D0;&#x05D1;&#x05D2;.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with textarea, then R</title>
<link rel="reference" href="dir_auto-contained-textarea-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant textarea elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, start with textarea, then R</title>
<link rel="reference" href="dir_auto-contained-textarea-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of descendant text while ignoring descendant textarea elements.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<div dir="auto"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="auto"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
<div class="ref">
<div dir="ltr">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
<div dir="rtl">
<div dir="rtl"><textarea>DEF</textarea>&#x05D0;&#x05D1;&#x05D2;ABC.</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with EN+L</title>
<link rel="reference" href="dir_auto-input-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with EN+L</title>
<link rel="reference" href="dir_auto-input-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with EN+R</title>
<link rel="reference" href="dir_auto-input-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with EN+R</title>
<link rel="reference" href="dir_auto-input-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with L</title>
<link rel="reference" href="dir_auto-input-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with L</title>
<link rel="reference" href="dir_auto-input-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05d0;&#x05d1;&#x05d2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+EN+L</title>
<link rel="reference" href="dir_auto-input-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+EN+L</title>
<link rel="reference" href="dir_auto-input-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+EN+R</title>
<link rel="reference" href="dir_auto-input-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+EN+R</title>
<link rel="reference" href="dir_auto-input-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, all N+EN</title>
<link rel="reference" href="dir_auto-input-N-EN-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value, or to LTR if there is no such
character.
In this test, there is no strongly directional character in the value,
thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, all N+EN</title>
<link rel="reference" href="dir_auto-input-N-EN-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value, or to LTR if there is no such
character.
In this test, there is no strongly directional character in the value,
thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="@123!" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+L</title>
<link rel="reference" href="dir_auto-input-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+L</title>
<link rel="reference" href="dir_auto-input-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+R</title>
<link rel="reference" href="dir_auto-input-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with N+R</title>
<link rel="reference" href="dir_auto-input-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with R</title>
<link rel="reference" href="dir_auto-input-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, start with R</title>
<link rel="reference" href="dir_auto-input-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with EN+L</title>
<link rel="reference" href="dir_auto-input-script-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with EN+L</title>
<link rel="reference" href="dir_auto-input-script-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since digits are not strongly
directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '123ABC\u05D0\u05D1\u05D2.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with EN+R</title>
<link rel="reference" href="dir_auto-input-script-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with EN+R</title>
<link rel="reference" href="dir_auto-input-script-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since digits are not strongly
directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '123\u05D0\u05D1\u05D2ABC.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="a" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="a" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with L</title>
<link rel="reference" href="dir_auto-input-script-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with L</title>
<link rel="reference" href="dir_auto-input-script-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A, thus the direction must be
resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = 'ABC\u05D0\u05D1\u05D2.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+EN+L</title>
<link rel="reference" href="dir_auto-input-script-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+EN+L</title>
<link rel="reference" href="dir_auto-input-script-N-EN-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals and digits are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '.-=123ABC\u05D0\u05D1\u05D2.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=123ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+EN+R</title>
<link rel="reference" href="dir_auto-input-script-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+EN+R</title>
<link rel="reference" href="dir_auto-input-script-N-EN-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals and digits are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '.-=123\u05D0\u05D1\u05D2ABC.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="a" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="a" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=123&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to all N+EN</title>
<link rel="reference" href="dir_auto-input-script-N-EN-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value, or to LTR if there is no such
character.
In this test, there is no strongly directional character in the value,
thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to all N+EN</title>
<link rel="reference" href="dir_auto-input-script-N-EN-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value, or to LTR if there is no such
character.
In this test, there is no strongly directional character in the value,
thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '@123!';
}
};
</script>
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value="@123!" />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value="@123!" />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+L</title>
<link rel="reference" href="dir_auto-input-script-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+L</title>
<link rel="reference" href="dir_auto-input-script-N-L-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Latin letter A since neutrals are not
strongly directional, thus the direction must be resolved as LTR." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '.-=ABC\u05D0\u05D1\u05D2.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="&#x05D0;" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
<div dir="rtl">
<input type="text" dir="ltr" value=".-=ABC&#x05D0;&#x05D1;&#x05D2;." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+R</title>
<link rel="reference" href="dir_auto-input-script-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with N+R</title>
<link rel="reference" href="dir_auto-input-script-N-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef since neutrals are not
strongly directional, thus the direction must be resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '.-=\u05D0\u05D1\u05D2ABC.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="a" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="a" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value=".-=&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with R</title>
<link rel="reference" href="dir_auto-input-script-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: input with dir=auto, script assigns to start with R</title>
<link rel="reference" href="dir_auto-input-script-R-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction of an input element is set according to
the first strong character of its value.
In this test, it is the Hebrew letter Alef, thus the direction must be
resolved as RTL." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x05D1; - The Hebrew letter Bet (strongly RTL).
&#x05D2; - The Hebrew letter Gimel (strongly RTL).
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var inputs = test.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
inputs[i].value = '\u05D0\u05D1\u05D2ABC.';
}
}
</script>
<div dir="ltr">
<input type="text" dir="auto" value="a" />
</div>
<div dir="rtl">
<input type="text" dir="auto" value="a" />
</div>
</div>
<div class="ref">
<div dir="ltr">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
<div dir="rtl">
<input type="text" dir="rtl" value="&#x05D0;&#x05D1;&#x05D2;ABC." />
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, isolated in LTR text</title>
<link rel="reference" href="dir_auto-isolate-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, but the element behaves externally as a neutral character.
In this test, it allows a preceding R to form a single directional run
with a succeeding number." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
&#x202D;1 a! &#x05D0;&#x202C;
</div>
<div dir="rtl">
&#x202D;a !&#x05D0; 1&#x202C;
</div>
</div>
<div class="ref">
<div dir="ltr">
&#x202D;1 a! &#x05D0;&#x202C;
</div>
<div dir="rtl">
&#x202D;a !&#x05D0; 1&#x202C;
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: dir=auto, isolated in LTR text</title>
<link rel="reference" href="dir_auto-isolate-ref.html" />
<link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
<link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text, but the element behaves externally as a neutral character.
In this test, it allows a preceding R to form a single directional run
with a succeeding number." />
<style>
input, textarea {
font-size:1em;
}
body {
font-size:2em;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
&#x202D; - The LRO (left-to-right-override) formatting character.
&#x202C; - The PDF (pop directional formatting) formatting character; closes LRO.
</div>
<div class="test">
<div dir="ltr">
&#x05D0; <span dir="auto">a!</span> 1
</div>
<div dir="rtl">
a <span dir="auto">&#x05D0;!</span> 1
</div>
</div>
<div class="ref">
<div dir="ltr">
&#x202D;1 a! &#x05D0;&#x202C;
</div>
<div dir="rtl">
&#x202D;a !&#x05D0; 1&#x202C;
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<pre dir="ltr">
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="ltr">
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: pre with dir=auto, all N+EN</title>
<link rel="reference" href="dir_auto-pre-N-EN-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
&#x200F; - 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.
</div>
<div class="test">
<div dir="ltr">
<pre dir="auto">
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="auto">
@123!
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="ltr">
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
<div dir="rtl">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
<div dir="rtl">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,76 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: pre with dir=auto, all-N between all-Rs</title>
<link rel="reference" href="dir_auto-pre-N-between-Rs-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - 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.
</div>
<div class="test">
<div dir="ltr">
<pre dir="auto">
&#x05D0;
...!
&#x05D0;
</pre>
</div>
<div dir="rtl">
<pre dir="auto">
&#x05D0;
...!
&#x05D0;
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
<div dir="rtl">
<pre dir="rtl">
&#x05D0;
!...
&#x05D0;
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,77 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: pre with dir=auto, mixed L and R paragraphs</title>
<link rel="reference" href="dir_auto-pre-mixed-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level." />
<style>
body {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
&#x200F; - 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.
</div>
<div class="test">
<div dir="ltr">
<pre dir="auto">
@&#x200E;123&#x200F;!
!&#x200F;123&#x200E;@
@123&#x200E;&#x200F;!
!123&#x200F;&#x200E;@
</pre>
</div>
<div dir="rtl">
<pre dir="auto">
@&#x200E;123&#x200F;!
!&#x200F;123&#x200E;@
@123&#x200E;&#x200F;!
!123&#x200F;&#x200E;@
</pre>
</div>
</div>
<div class="ref">
<div dir="ltr">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
<div dir="rtl">
<pre dir="ltr">
@123!
@123!
@123!
@123!
</pre>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: textarea with dir=auto, all N+EN</title>
<link rel="reference" href="dir_auto-textarea-N-EN-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
&#x200F; - 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.
</div>
<div class="test">
<div dir="ltr">
<textarea rows="2" dir="auto">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="auto">
@123!
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="reference" href="dir_auto-textarea-N-between-Rs-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,79 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: textarea with dir=auto, all-N between all-Rs</title>
<link rel="reference" href="dir_auto-textarea-N-between-Rs-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - 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.
</div>
<div class="test">
<div dir="ltr">
<textarea rows="4" dir="auto">
&#x05D0;
...!
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="auto">
&#x05D0;
...!
&#x05D0;
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<textarea rows="5" dir="rtl">
!123@
!123@
!123@
!123@
</textarea>
</div>
<div dir="rtl">
<textarea rows="5" dir="ltr">
@123!
@123!
@123!
@123!
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="5" dir="rtl">
!123@
!123@
!123@
!123@
</textarea>
</div>
<div dir="rtl">
<textarea rows="5" dir="ltr">
@123!
@123!
@123!
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: textarea with dir=auto, mixed L and R paragraphs</title>
<link rel="reference" href="dir_auto-textarea-mixed-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level." />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
&#x200F; - 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.
</div>
<div class="test">
<div dir="ltr">
<textarea rows="5" dir="auto">
!&#x200F;123&#x200E;@
@&#x200E;123&#x200F;!
!123&#x200F;&#x200E;@
@123&#x200E;&#x200F;!
</textarea>
</div>
<div dir="rtl">
<textarea rows="5" dir="auto">
@&#x200E;123&#x200F;!
!&#x200F;123&#x200E;@
@123&#x200E;&#x200F;!
!123&#x200F;&#x200E;@
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="5" dir="rtl">
!123@
!123@
!123@
!123@
</textarea>
</div>
<div dir="rtl">
<textarea rows="5" dir="ltr">
@123!
@123!
@123!
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="test">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,75 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: textarea with dir=auto, script assigns to all N+EN</title>
<link rel="reference" href="dir_auto-textarea-script-N-EN-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
&#x200F; - 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.
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var textareas = test.getElementsByTagName('textarea');
for (var i = 0; i < textareas.length; i++) {
textareas[i].value = '@123!\n';
}
}
</script>
<div dir="ltr">
<textarea rows="2" dir="auto">
&#x200F;
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="auto">
&#x200F;
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
<div dir="rtl">
<textarea rows="2" dir="ltr">
@123!
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="reference" href="dir_auto-textarea-N-between-Rs-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - The Hebrew letter Alef (strongly RTL).
</div>
<div class="test">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,84 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Test: textarea with dir=auto, script assigns to all-N between all-Rs</title>
<link rel="reference" href="dir_auto-textarea-script-N-between-Rs-ref.html" />
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
<link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
<link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
<meta name="assert" content="
When dir='auto', the direction is set according to the first strong character
of the text.
For textarea and pre elements, the heuristic is applied on a per-paragraph level.
If there is no strong character, as in this test, the direction defaults to LTR." />
<style>
body, textarea {
font-size:18px;
text-align:left;
}
textarea {
resize: none;
}
.test, .ref {
border: medium solid gray;
width: 400px;
margin: 20px;
}
.comments {
display: none;
}
</style>
</head>
<body>
<div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
<div class="comments">
Key to entities used below:
&#x05D0; - 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.
</div>
<div id="test" class="test">
<script>
window.onload = function() {
var test = document.getElementById('test');
var textareas = test.getElementsByTagName('textarea');
for (var i = 0; i != textareas.length; i++) {
textareas[i].value = '\u05D0\n...!\n\u05D0';
}
}
</script>
<div dir="ltr">
<textarea rows="4" dir="auto">
LTR text
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="auto">
LTR text
</textarea>
</div>
</div>
<div class="ref">
<div dir="ltr">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
<div dir="rtl">
<textarea rows="4" dir="rtl">
&#x05D0;
!...
&#x05D0;
</textarea>
</div>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More