diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element')
6 files changed, 75 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/.gitkeep b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/.gitkeep diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-child.html b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-child.html new file mode 100644 index 000000000..feadc26d7 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-child.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>HTML Test: bdo - text directionality formatting control for its children</title> + <link rel="author" title="Intel" href="http://www.intel.com/"> + <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdo-element"> + <link rel="match" href="bidi-001-ref.html"> + <meta name="assert" content="Check if the bdo element represents explicit text directionality formatting control for its children."> + </head> + <body> + <p>Test passes if there is text 'WERBEH'.</p> + <bdo dir="rtl"> + <span>HEBREW</span> + </bdo> + </body> +</html> diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-ltr.html b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-ltr.html new file mode 100644 index 000000000..8a7861086 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-ltr.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>HTML Test: The value 'ltr' of dir attribute specifies a left-to-right override</title> + <link rel="author" title="Intel" href="http://www.intel.com/"> + <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdo-element"> + <link rel="match" href="bidi-001-ref.html"> + <meta name="assert" content="Check if the value ltr of dir attribute specifies a left-to-right override"> + </head> + <body> + <p>Test passes if there is text 'WERBEH'.</p> + <bdo dir="ltr">WERBEH</bdo> + </body> +</html> diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-override.html b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-override.html new file mode 100644 index 000000000..75a45e198 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bdo-override.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>HTML Test: bdo - override the Unicode bidirectional algorithm</title> + <link rel="author" title="Intel" href="http://www.intel.com/"> + <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdo-element"> + <link rel="match" href="bidi-001-ref.html"> + <meta name="assert" content="Check if authors could override the Unicode bidirectional algorithm + by explicitly specifying a direction override of bdo element"> + </head> + <body> + <p>Test passes if there is text 'WERBEH'.</p> + <p> + ‮<bdo dir="ltr">WERBEH</bdo>‬ + </p> + </body> +</html> diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001-ref.html b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001-ref.html new file mode 100644 index 000000000..83d2dc4a1 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>directional type reference</title> +</head> +<body> +<p>Test passes if there is text 'WERBEH'.</p> +<div>WERBEH</div> +</body> +</html> diff --git a/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001.html b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001.html new file mode 100644 index 000000000..772dcf43b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/text-level-semantics/the-bdo-element/bidi-001.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="UTF-8"> +<title>directional type</title> +<meta content="W3C" name="author"> +<link rel="match" href="bidi-001-ref.html"> +<meta name="assert" content="Test text bidirectionality using the bdo element"> +</head> +<body dir='ltr'> +<p>Test passes if there is text 'WERBEH'.</p> +<bdo dir="rtl">HEBREW</bdo> +</body> +</html> |