blob: f5c24ed0e42bdbf8bd85af84343d5bd7ffbd3595 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8"/>
<title>The dir attribute: dir=rtl basic test</title>
<link rel='author' title='HTML5 bidi test WG' href=''>
<link rel='help' href=''>
<link rel="match" href="reference/the-dir-attribute-001-ref.html">
<meta name="assert" content="If the element's dir attribute is in the rtl state, the directionality of the element is rtl.">
<style type='text/css'>
.test, .ref { width: 90%; margin: 0 4%; font-size: 2em; position: absolute; top: 0; }
.ref { color: red; z-index: -100; }
<p class="instructions">Test passes if you see no red characters.</p>
<div style="position: relative">
<div class="test"><p dir="rtl">مكتب W3C הישראלי</p><p>left <span dir="rtl">مكتب W3C הישראלי</span> right</p></div>
<div class="ref"><p style="text-align: right;">&#x202B;مكتب W3C הישראלי&#x202C;</p><p>left &#x202B;مكتب W3C הישראלי&#x202C; right</p></div>