blob: 9513f9d05785fc0e54f06848f2040010e80cc6a6 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
<html>
<head>
<style>
div.overflow { margin: 20px; width: 150px; height: 50px; overflow: auto;}
div.overflow div { width: 200px; }
</style>
</head>
<body>
<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14875">http://bugs.webkit.org/show_bug.cgi?id=14875</a>
Textarea with nowrap - left/right nav, Up/down nav both hide text</i>.
</p>
<p>
The letter A should be fully visible in each one of the eight boxes below.
</p>
<div id="t1" contenteditable="true" class="overflow">
<div style="text-align: right;">
A
</div>
</div>
<div id="t2" contenteditable="true" class="overflow" style="border-left: 10px solid;">
<div style="text-align: right;">
A
</div>
</div>
<div id="t3" contenteditable="true" class="overflow" style="border-right: 10px solid;">
<div style="text-align: right;">
A
</div>
</div>
<div id="t4" contenteditable="true" class="overflow" style="overflow-y: scroll;">
<div style="text-align: right;">
A
</div>
</div>
<div id="t5" contenteditable="true" class="overflow">
<div>
A
</div>
</div>
<div id="t6" contenteditable="true" class="overflow" style="border-left: 10px solid;">
<div>
A
</div>
</div>
<div id="t7" contenteditable="true" class="overflow" style="border-right: 10px solid;">
<div>
A
</div>
</div>
<div id="t8" contenteditable="true" class="overflow" style="overflow-y: scroll;">
<div>
A
</div>
</div>
<script>
function focusDiv(id)
{
var div = document.getElementById(id);
div.focus();
div.blur();
}
function scrollAndFocusDiv(id)
{
var div = document.getElementById(id);
div.scrollLeft = 400;
div.focus();
div.blur();
}
focusDiv("t1");
focusDiv("t2");
focusDiv("t3");
focusDiv("t4");
scrollAndFocusDiv("t5");
scrollAndFocusDiv("t6");
scrollAndFocusDiv("t7");
scrollAndFocusDiv("t8");
</script>
</body>
</html>
|