| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| "http://www.w3.org/TR/html4/loose.dtd"> |
| <html style="-webkit-writing-mode:vertical-lr"> |
| <head> |
| <title>overflow:auto with direction:rtl</title> |
| <style type="text/css"> |
| div.test { background: yellow; width: 6ex; height: 100px; overflow: auto; |
| border-top: 10px solid red; border-bottom: 5px solid green; margin: 4px; } |
| div.rtl { direction: rtl; border-bottom: 10px solid red; border-top: 5px solid green; } |
| </style> |
| </head> |
| <body> |
| <p> |
| This is a test case for <i>http://bugzilla.opendarwin.org/show_bug.cgi?id=5826 Blocks with direction:rtl and overflow:auto or scroll have incorrect scrollbars</i>. |
| </p> |
| The right column should be a mirror-image of the left column in terms of |
| <ul> |
| <li>the presence of a scrollbar</li> |
| <li>the initial position of the scroll thumb</li> |
| <li>which letters are visible initially and when you scroll</li> |
| </ul> |
| <table> |
| <tr> |
| <td> |
| <div class="test"> |
| abcdefghijklmnopqrstuvwxyz |
| </div> |
| |
| <div class="test"> |
| <div style="direction:rtl; background:lightgray;">abcdefghijklmnopqrstuvwxyz</div> |
| </div> |
| |
| <div class="test"> |
| <div style="direction:ltr; background:lightgray;">abcdefghijklmnopqrstuvwxyz</div> |
| </div> |
| </td> |
| <td> |
| <div class="test rtl"> |
| zyxwvutsrqponmlkjihgfedcba |
| </div> |
| |
| <div class="test rtl"> |
| <div style="direction:ltr; background:lightgray;">zyxwvutsrqponmlkjihgfedcba</div> |
| </div> |
| |
| <div class="test rtl"> |
| <div style="direction:rtl; background:lightgray;">zyxwvutsrqponmlkjihgfedcba</div> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </body> |
| </html> |