There is a dir="rtl" attribute on the html element for this document. (This is overridden for blocks containing English text describing the test. Graphics are shown by small corners top left and top right.)

p and table in a LTR div

The p and table elements inherit directionality, but appear within a <div dir="ltr">.

Markup is: <div dir="ltr"><p>...</p></div>.

Check order of words looks the same as this graphic, and that the text is left-aligned:

The following paragraph should look like this.

مكتب W3C הישראלי

Markup is: <div dir="ltr"><table>...</table></div>

Check order of columns and the alignment of text in the columns looks the same as this graphic, and that the table is left-aligned:

The following paragraph should look like this.

123
مكتب W3C הישראליمكتب W3C הישראליمكتب W3C הישראלי

Direction change on p and table

The p and table explicitly change directionality using dir="ltr". The div they are in simply inherits the document direction.

Markup is: <div><p dir="ltr">...</p></div>.

Check order of words looks the same as this graphic, and that the text is left-aligned:

The following paragraph should look like this.

مكتب W3C הישראלי

Markup is: <div><table dir="ltr">...</table></div>

Check order of columns and the alignment of text in the columns looks the same as this graphic, and that the table is right-aligned:

The following paragraph should look like this.

123
مكتب W3C הישראליمكتب W3C הישראליمكتب W3C הישראלי

RTL p and table, in a LTR div

The p and table explicitly change directionality using dir="rtl", within a div set to dir="ltr".

Markup is: <div dir="ltr"><p dir="rtl">...</p></div>.

Check order of words looks the same as this graphic, and that the text is right-aligned:

The following paragraph should look like this.

مكتب W3C הישראלי

Markup is: <div dir="ltr"><table dir="rtl">...</table></div>

Check order of columns and the alignment of text in the columns looks the same as this graphic, and that the table is left-aligned:

The following paragraph should look like this.

123
مكتب W3C הישראליمكتب W3C הישראליمكتب W3C הישראלי

Version: $Id: sec-dir-3.html,v 1.4 2004/11/04 20:49:45 rishida Exp $