| <!DOCTYPE html> |
| <html lang="en" > |
| <head> |
| <meta charset="utf-8"/> |
| <title>The dir attribute: dl lists</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-006-ref.html"> |
| <meta name="assert" content="[Exploratory] In a rtl context, all list items should start from the right, regardless of the direction of the script in the list item."> |
| <style type='text/css'> |
| .test, .ref { width: 90%; margin: 0 4%; font-size: 2em; position: absolute; top: 0; } |
| .ref { color: red; z-index: -100; } |
| |
| dt { font-weight: bold; margin:0; padding: 0; margin-top: 1em; } |
| dd { margin:0; padding: 0; margin-right: 40px; } |
| .ref { text-align: right; } |
| .ref dd { margin:0; padding: 0; margin-right: 40px; } |
| </style> |
| </head> |
| <body> |
| <p class="instructions">Test passes if you see no red characters.</p> |
| <div class="test" dir="rtl"> |
| <dl> |
| <dt>left right</dt> |
| <dd>left right</dd> |
| <dt>حق غادر</dt> |
| <dd>حق غادر</dd> |
| <dt>נכון שמאל</dt> |
| <dd>נכון שמאל</dd> |
| </dl> |
| </div> |
| <div class="ref"> |
| <dl> |
| <dt>left right</dt> |
| <dd>left right</dd> |
| <dt>حق غادر</dt> |
| <dd>حق غادر</dd> |
| <dt>נכון שמאל</dt> |
| <dd>נכון שמאל</dd> |
| </dl> |
| </div> |
| </div> |
| </body> |
| </html> |