blob: 1e044c97be1322a59a9bc333e60552665484bba9 [file] [log] [blame]
<title>Highlighting a selected image in scrolled block</title>
<script type="text/javascript">
function test()
var t = document.getElementById('target');
t.scrollTop = 40;
<body onload="test()">
This tests for a regression against <i><a href=""></a>
Selection highlight doesn't scroll along with an image contained in an overflow:scroll block</i>.
There should be one contiguous highlight from &ldquo;elit&rdquo; to &ldquo;Etiam&rdquo;,
including the orange square, and no other highlighted areas.
<div id="target" style="overflow: auto; width: 100px; height: 200px;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<img src="data:image/gif;base64,R0lGODlhCgAKAIAAAP/MAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw==">
Etiam et ipsum. Nam consectetuer mi eget velit.
Sed nec risus vitae felis auctor ultricies. Pellentesque