4 div.overflow { margin:
20px; width:
150px; height:
50px; overflow: auto;}
5 div.overflow div { width:
200px; }
10 Test for
<i><a href=
"http://bugs.webkit.org/show_bug.cgi?id=14875">http://bugs.webkit.org/show_bug.cgi?id=
14875</a>
11 Textarea with nowrap - left/right nav, Up/down nav both hide text
</i>.
14 The letter A should be fully visible in each one of the eight boxes below.
16 <div id=
"t1" contenteditable=
"true" class=
"overflow">
17 <div style=
"text-align: right;">
22 <div id=
"t2" contenteditable=
"true" class=
"overflow" style=
"border-left: 10px solid;">
23 <div style=
"text-align: right;">
28 <div id=
"t3" contenteditable=
"true" class=
"overflow" style=
"border-right: 10px solid;">
29 <div style=
"text-align: right;">
34 <div id=
"t4" contenteditable=
"true" class=
"overflow" style=
"overflow-y: scroll;">
35 <div style=
"text-align: right;">
40 <div id=
"t5" contenteditable=
"true" class=
"overflow">
46 <div id=
"t6" contenteditable=
"true" class=
"overflow" style=
"border-left: 10px solid;">
52 <div id=
"t7" contenteditable=
"true" class=
"overflow" style=
"border-right: 10px solid;">
58 <div id=
"t8" contenteditable=
"true" class=
"overflow" style=
"overflow-y: scroll;">
67 var div
= document
.getElementById(id
);
72 function scrollAndFocusDiv(id
)
74 var div
= document
.getElementById(id
);
84 scrollAndFocusDiv("t5");
85 scrollAndFocusDiv("t6");
86 scrollAndFocusDiv("t7");
87 scrollAndFocusDiv("t8");