blob: 0fde1f878d57a8d9d4f66f7821dd9547a9264c7a [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8"/>
<title>The dir attribute: inheritance</title>
<link rel='author' title='HTML5 bidi test WG' href='mailto:public-i18n-bidi@w3.org'>
<link rel='help' href='https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute'>
<link rel="match" href="reference/the-dir-attribute-007-ref.html">
<meta name="assert" content="If an element has no dir attribute, but has a parent element, the directionality of the element is the same as the parent element's directionality.">
<style type='text/css'>
.test, .ref { width: 90%; margin: 0 4%; font-size: 2em; position: absolute; top: 0; }
.ref { color: red; z-index: -100; }
</style>
</head>
<body>
<p class="instructions">Test passes if you see no red characters.</p>
<div style="position: relative">
<div class="test">
<div dir="rtl"><p>مكتب W3C הישראלי</p><p>مكتب W3C הישראלי</p></div>
<div dir="rtl"><div><p>مكتب W3C הישראלי</p><p>مكتب W3C הישראלי</p></div></div>
<div dir="ltr"><p>مكتب W3C הישראלי</p><p>مكتب W3C הישראלי</p></div>
<div dir="ltr"><div><p>مكتب W3C הישראלי</p><p>مكتب W3C הישראלי</p></div></div>
</div>
<div style="position: relative">
<div class="test">
<div style="text-align: right;"><p>&#x202B;مكتب W3C הישראלי&#x202C;</p><p>&#x202B;مكتب W3C הישראלי&#x202C;</p></div>
<div style="text-align: right;"><p>&#x202B;مكتب W3C הישראלי&#x202C;</p><p>&#x202B;مكتب W3C הישראלי&#x202C;</p></div>
<div><p>&#x202A;مكتب W3C הישראלי&#x202C;</p><p>&#x202A;مكتب W3C הישראלי&#x202C;</p></div>
<div><p>&#x202A;مكتب W3C הישראלי&#x202C;</p><p>&#x202A;مكتب W3C הישראלי&#x202C;</p></div>
</div>
</div>
</body>
</html>