blob: 6183429610ca408eed2970cc88a353daa80353cb [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8"/>
<title>The dir attribute: invalid value and 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-008-ref.html">
<meta name="assert" content="If an element has a dir attribute with an invalid value ('foo' or 'bar'), and 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 dir="foo">مكتب W3C הישראלי</p></div>
<div dir="ltr"><p dir="bar">مكتب W3C הישראלי</p></div>
</div>
<div style="position: relative">
<div class="test">
<div style="text-align: right;"><p>&#x202B;مكتب W3C הישראלי&#x202C;</p></div>
<div><p>&#x202A;مكتب W3C הישראלי&#x202C;</p></div>
</div>
</div>
</body>
</html>