<html> | |
<head> | |
<title></title> | |
<style> | |
#target::selection { color: green; } | |
</style> | |
</head> | |
<body> | |
<p> | |
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11124">http://bugs.webkit.org/show_bug.cgi?id=11124</a> | |
REGRESSION (r14297): No drag image for partially-selected complex text</i>. | |
<p> | |
This should look like “<span style="color: green;">Lorèm ipsum</span>”: <span id="target"> Lorèm ipsum</span> | |
</p> | |
<script> | |
var text = document.getElementById("target").firstChild; | |
window.getSelection().setBaseAndExtent(text, 1, text, 13); | |
</script> | |
</body> | |
</html> |