3 <title>Highlighting a selected image in scrolled block
</title>
4 <script type=
"text/javascript">
7 var t
= document
.getElementById('target');
8 window
.getSelection().setBaseAndExtent(t
.childNodes
[0],58,t
.childNodes
[2],11);
13 <body onload=
"test()">
15 This tests for a regression against
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=6673">http://bugzilla.opendarwin.org/show_bug.cgi?id=
6673</a>
16 Selection highlight doesn't scroll along with an image contained in an overflow:scroll block
</i>.
19 There should be one contiguous highlight from
“elit
” to
“Etiam
”,
20 including the orange square, and no other highlighted areas.
23 <div id=
"target" style=
"overflow: auto; width: 100px; height: 200px;">
24 Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
25 <img src=
"data:image/gif;base64,R0lGODlhCgAKAIAAAP/MAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw==">
26 Etiam et ipsum. Nam consectetuer mi eget velit.
27 Sed nec risus vitae felis auctor ultricies. Pellentesque