blob: cf2e39214a22f68a920d6b09e2a451e4716c9063 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" >
<meta charset="utf-8"/>
<title>The dir attribute: ltr context, rtl table</title>
<link rel='author' title='HTML5 bidi test WG' href=''>
<link rel='help' href=''>
<link rel="match" href="reference/the-dir-attribute-003-ref.html">
<meta name="assert" content="[Exploratory] When dir='rtl' is added to a table in a ltr context, (a) directional runs in a table are ordered right-to-left, (b) columns run right-to-left, (c) text is right-aligned within cells, and (d) the table is left-aligned on the page.">
<style type='text/css'>
.test, .ref { width: 90%; margin: 0 4%; font-size: 2em; position: absolute; top: 0; }
.ref { color: red; z-index: -100; }
td { border: 1px dotted #ccc; } .ref table { align: right; } .ref td { text-align: right; }
<p class="instructions" dir="ltr">Test passes if you see no red characters.</p>
<div style="position: relative">
<div class="test">
<table dir="rtl">
<tr><td>مكتب W3C הישראלי</td><td>مكتب W3C הישראלי</td><td>مكتب W3C הישראלי</td></tr>
<div class="ref" style="text-align:right;">
<tr><td>&#x202B;مكتب W3C הישראלי&#x202C;</td><td>&#x202B;مكتب W3C הישראלי&#x202C;</td><td>&#x202B;مكتب W3C הישראלי&#x202C;</td></tr>