summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/directionality
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/directionality')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html12
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html17
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html18
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml12
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml3
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml7
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml6
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml11
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml4
13 files changed, 131 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html
new file mode 100644
index 0000000000..d79fd7fa5b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir1html.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Directionality</title>
+ </head>
+ <body>
+ <p>In Hebrew, the title <q lang="he"
+ dir="rtl">פעילות הבינאום, W3C</q>
+ means "Internationalization Activity, W3C".</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html
new file mode 100644
index 0000000000..562676dcfc
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir2html.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Directionality</title>
+ <script type="application/its+xml">
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+ <its:dirRule selector="//h:*[@class='rtLeft']" dir="rtl" />
+ </its:rules>
+ </script>
+ </head>
+ <body>
+ <p>In Hebrew, the title <q lang="he"
+ class="rtLeft">פעילות הבינאום, W3C</q>
+ means "Internationalization Activity, W3C".</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html
new file mode 100644
index 0000000000..5764c6bc53
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3html.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Directionality</title>
+ <link href="dir3htmlrules.xml" rel="its-rules">
+ </head>
+ <body>
+ <p>In Hebrew, the title <q lang="he"
+ class="rtLeft">פעילות הבינאום, W3C</q>
+ means "Internationalization Activity, W3C".</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml
new file mode 100644
index 0000000000..8e1c97b07a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir3htmlrules.xml
@@ -0,0 +1,4 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+ <its:param name="dirParam">rtLeft</its:param>
+ <its:dirRule selector="//h:*[@class=$dirParam]" dir="rtl" />
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html
new file mode 100644
index 0000000000..1d3ed6e154
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/html/dir4html.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Directionality</title>
+ <script type="application/its+xml">
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+ <its:param name="dirParam">rtLeft</its:param>
+ <its:dirRule selector="//h:*[@class=$dirParam]" dir="rtl" />
+ </its:rules>
+ </script>
+ </head>
+ <body>
+ <p>In Hebrew, the title <q lang="he"
+ class="rtLeft">פעילות הבינאום, W3C</q>
+ means "Internationalization Activity, W3C".</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml
new file mode 100644
index 0000000000..8962c0c06e
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir1xml.xml
@@ -0,0 +1,12 @@
+<text xml:lang="en">
+ <head>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:dirRule dir="rtl" selector="//*[@direction='rtlText']"/>
+ </its:rules>
+ </head>
+ <body>
+ <par>In Hebrew, the title <quote xml:lang="he"
+ direction="rtlText">פעילות הבינאום, W3C</quote>
+ means <quote>Internationalization Activity, W3C</quote>.</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml
new file mode 100644
index 0000000000..da98efb781
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xml.xml
@@ -0,0 +1,11 @@
+<text xml:lang="en">
+ <head>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"
+ xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="dir2xmlrules.xml" />
+ </head>
+ <body>
+ <par>In Hebrew, the title <quote xml:lang="he"
+ direction="rtlText">פעילות הבינאום, W3C</quote>
+ means <quote>Internationalization Activity, W3C</quote>.</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml
new file mode 100644
index 0000000000..42b2feb006
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir2xmlrules.xml
@@ -0,0 +1,3 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:dirRule dir="rtl" selector="//*[@direction='rtlText']"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml
new file mode 100644
index 0000000000..d7f1805d6c
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir3xml.xml
@@ -0,0 +1,7 @@
+<text xml:lang="en" xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0">
+ <body>
+ <par>In Arabic, the title <quote xml:lang="ar"
+ its:dir="rtl">نشاط التدويل، W3C</quote>
+ means <quote>Internationalization Activity, W3C</quote>.</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml
new file mode 100644
index 0000000000..1a0b77ca8e
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir4xml.xml
@@ -0,0 +1,6 @@
+<text xml:lang="en" xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0">
+ <body>
+ <par>In Arabic, the title "<its:span xml:lang="ar" dir="rtl">نشاط التدويل، W3C</its:span>"
+ means "Internationalization Activity, W3C".</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml
new file mode 100644
index 0000000000..b8c56ac211
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir5xml.xml
@@ -0,0 +1,13 @@
+<text xml:lang="en">
+ <head>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:param name="dirParam">rtlText</its:param>
+ <its:dirRule dir="rtl" selector="//*[@direction=$dirParam]"/>
+ </its:rules>
+ </head>
+ <body>
+ <par>In Hebrew, the title <quote xml:lang="he"
+ direction="rtlText">פעילות הבינאום, W3C</quote>
+ means <quote>Internationalization Activity, W3C</quote>.</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml
new file mode 100644
index 0000000000..0d60fb0cc2
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xml.xml
@@ -0,0 +1,11 @@
+<text xml:lang="en">
+ <head>
+ <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"
+ xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="dir6xmlrules.xml" />
+ </head>
+ <body>
+ <par>In Hebrew, the title <quote xml:lang="he"
+ direction="rtlText">פעילות הבינאום, W3C</quote>
+ means <quote>Internationalization Activity, W3C</quote>.</par>
+ </body>
+</text>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml
new file mode 100644
index 0000000000..8ade2458f8
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/directionality/xml/dir6xmlrules.xml
@@ -0,0 +1,4 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0">
+ <its:param name="dirParam">rtlText</its:param>
+ <its:dirRule dir="rtl" selector="//*[@direction=$dirParam]"/>
+</its:rules>