summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/overflow-rtl.html
blob: 6c977e55ca5ba1aa29149b342c10dd3f8410b0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!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>