1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>Selection on replaced element</title>
6 <style type="text/css">
15 <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></script>
16 <script type="text/javascript" charset="utf-8">
19 var selection = window.getSelection();
20 var image = document.getElementById('test');
21 selection.setBaseAndExtent(image, 0, image, 1);
24 function repaintTest()
26 document.getElementById('test').className = 'moved';
30 <body onload="loaded()">
31 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22472">https://bugs.webkit.org/show_bug.cgi?id=22472</a>
32 <i>Selection is not completely erased when a replaced element moves</i>
34 <img id="test" src="resources/apple.jpg" width="214" height="232" alt="Apple">