1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
5 <title>overflow:auto with direction:rtl
</title>
6 <style type=
"text/css">
7 div
.test
{ background: yellow
; height: 6ex; width: 100px; overflow: auto
;
8 border-left: 10px solid red
; border-right: 5px solid green
; margin: 4px; }
9 div
.rtl
{ direction: rtl
; border-right: 10px solid red
; border-left: 5px solid green
; }
14 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>.
16 The right column should be a mirror-image of the left column in terms of
18 <li>the presence of a scrollbar
</li>
19 <li>the initial position of the scroll thumb
</li>
20 <li>which letters are visible initially and when you scroll (in the top
3 rows)
</li>
21 <li>the position of the blue and olive boxes, initially and when you scroll (in the bottom
2 rows)
</li>
27 abcdefghijklmnopqrstuvwxyz
31 <div style=
"direction:rtl; background:lightgray;">abcdefghijklmnopqrstuvwxyz
</div>
35 <div style=
"direction:ltr; background:lightgray;">abcdefghijklmnopqrstuvwxyz
</div>
38 <div class=
"test" style=
"position:relative;">
39 <div style=
"width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
40 <div style=
"width:70px; height:20px; background:olive; position: absolute; left:-50px;"></div>
43 <div class=
"test" style=
"position:relative;">
44 <div style=
"width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
45 <div style=
"width:70px; height:20px; background:olive; position: absolute; left:80px;"></div>
49 <div class=
"test rtl">
50 zyxwvutsrqponmlkjihgfedcba
53 <div class=
"test rtl">
54 <div style=
"direction:ltr; background:lightgray;">zyxwvutsrqponmlkjihgfedcba
</div>
57 <div class=
"test rtl">
58 <div style=
"direction:rtl; background:lightgray;">zyxwvutsrqponmlkjihgfedcba
</div>
61 <div class=
"test rtl" style=
"position:relative;">
62 <div style=
"width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
63 <div style=
"width:70px; height:20px; background:olive; position: absolute; left:80px;"></div>
66 <div class=
"test rtl" style=
"position:relative;">
67 <div style=
"width:8px; height:4px; background:blue; position: absolute; left:46px; top:20px;"></div>
68 <div style=
"width:70px; height:20px; background:olive; position: absolute; left:-50px;"></div>