summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html/elements/bdo
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/elements/bdo')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-isvalid.html28
-rw-r--r--testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-novalid.html21
2 files changed, 49 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-isvalid.html
new file mode 100644
index 0000000000..17a9d2c971
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-isvalid.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset=utf-8>
+ <title>&lt;bdo&gt;</title>
+</head>
+<body>
+ <!-- is structured inline; requires 'dir', test all attrs -->
+ <p><bdo dir="ltr"
+ lang="en"
+ style=""
+ class="class"
+ id="foo">text</bdo></p>
+
+ <!-- is strictly inline -->
+ <p><dfn><bdo dir="ltr" class="class" lang="en">text</bdo></dfn></p>
+
+ <!-- can be empty -->
+ <p>text <bdo dir="ltr"></bdo></p>
+ <p>text <dfn><bdo dir="ltr"></bdo></dfn></p>
+
+ <!-- can contain interactive -->
+ <p><bdo dir="ltr"><a>text</a></bdo></p>
+ <p><dfn><bdo dir="ltr"><a>text</a></bdo></dfn></p>
+
+ <!-- cannot contain structured inline -->
+</body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-novalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-novalid.html
new file mode 100644
index 0000000000..5dee57cf7a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html/elements/bdo/model-novalid.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset=utf-8>
+ <title>&lt;bdo&gt;</title>
+</head>
+<body>
+ <!-- not a block -->
+ <bdo dir="ltr">text</bdo>
+
+ <!-- 'dir' attribute required -->
+ <p><bdo>text</bdo></p>
+
+ <!-- cannot contain structured inline -->
+ <p><bdo dir="ltr"><ul><li>text</li></ul></bdo></p>
+
+ <!-- cannot contain interactive if parent forbids interactive -->
+ <p><a><bdo dir="ltr"><a>text</a></bdo></a></p>
+ <p><a><dfn><bdo dir="ltr"><a>text</a></bdo></dfn></a></p>
+</body>
+</html>