blob: 6c977e55ca5ba1aa29149b342c10dd3f8410b0a5 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>overflow:auto with direction:rtl</title>
<style type="text/css">
div.test { background: yellow; height: 6ex; width: 100px; overflow: auto;
border-left: 10px solid red; border-right: 5px solid green; margin: 4px; }
div.rtl { direction: rtl; border-right: 10px solid red; border-left: 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 (in the top 3 rows)</li>
<li>the position of the blue and olive boxes, initially and when you scroll (in the bottom 2 rows)</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>
<div class="test" style="position:relative;">
<div style="width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
<div style="width:70px; height:20px; background:olive; position: absolute; left:-50px;"></div>
</div>
<div class="test" style="position:relative;">
<div style="width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
<div style="width:70px; height:20px; background:olive; position: absolute; left:80px;"></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>
<div class="test rtl" style="position:relative;">
<div style="width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
<div style="width:70px; height:20px; background:olive; position: absolute; left:80px;"></div>
</div>
<div class="test rtl" style="position:relative;">
<div style="width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
<div style="width:70px; height:20px; background:olive; position: absolute; left:-50px;"></div>
</div>
</td>
</tr>
</table>
</body>
</html>