Skip to content

Commit

Permalink
Add some cases for the bdo element
Browse files Browse the repository at this point in the history
Signed-off-by: xiaojunwu <xiaojunx.a.wu@intel.com>
  • Loading branch information
xiaojunwu authored and deniak committed Feb 12, 2014
1 parent ebe6b28 commit 436fc3a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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="http://www.w3.org/html/wg/drafts/html/CR/text-level-semantics.html#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>
15 changes: 15 additions & 0 deletions 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="http://www.w3.org/html/wg/drafts/html/CR/text-level-semantics.html#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>
@@ -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="http://www.w3.org/html/wg/drafts/html/CR/text-level-semantics.html#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>
&#x202E;<bdo dir="ltr">WERBEH</bdo>&#x202C;
</p>
</body>
</html>

0 comments on commit 436fc3a

Please sign in to comment.