blob: 02c2618d3213b0585b5fc2ea03d452882ea69582 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8"/>
<title>The dir attribute: dir=auto, start with N, then EN, then L</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-069-ref.html">
<meta name="assert" content=" When dir='auto', the direction is set according to the first strong character of the text, ignoring neutrals and numbers. If there is no strong character, as in this test, the direction defaults to LTR.">
<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" dir="ltr">Test passes if you see no red characters.</p>
<div style="position: relative">
<div class="test">
<div dir="ltr">
<p dir="auto">@123!</p>
</div>
<div dir="rtl">
<p dir="auto">@123!</p>
</div>
</div>
<div class="ref">
<div dir="ltr">
<p dir="ltr">@123!</p>
</div>
<div dir="rtl">
<p dir="ltr">@123!</p>
</div>
</div>
</div>
</body>
</html>