blob: c1ca2c3035264579d8cff3c6f4f9c4c0f93e974a [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8"/>
<title>The dir attribute: dir=auto, inline isolation</title>
<link rel='author' title='Richard Ishida' href=''>
<link rel='help' href=''>
<link rel="match" href="reference/the-dir-attribute-047-ref.html">
<meta name="assert" content="dir='auto' on an inline element will directionally isolate its contents from a following number.">
<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" dir="ltr">Test passes if you see no red characters.</p>
<!--<div class="comments">
Key to entities used below:
&#x5d0; - The Hebrew letter Alef (strongly RTL).
&#x202d; - The LRO (left-to-right-override) formatting character.
&#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
<div style="position: relative">
<div class="test">
<div dir="ltr"><span dir="auto">&#x5d0;</span> 5 a</div>
<div dir=rtl><span dir="auto">a</span> 5 &#x5d0;</div>
<div class="ref">
<div dir="ltr">
&#x202d;&#x5d0; 5 a&#x202c;
<div dir="rtl">
&#x202d;&#x5d0; 5 a&#x202c;