blob: 6183429610ca408eed2970cc88a353daa80353cb [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8"/>
<title>The dir attribute: invalid value and inheritance</title>
<link rel='author' title='HTML5 bidi test WG' href=''>
<link rel='help' href=''>
<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; }
<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 style="position: relative">
<div class="test">
<div style="text-align: right;"><p>&#x202B;مكتب W3C הישראלי&#x202C;</p></div>
<div><p>&#x202A;مكتب W3C הישראלי&#x202C;</p></div>