blob: 8731541b7fe9804399c9bf86e82d279d4eaa9d29 [file] [log] [blame]
<style>
div::selection { background-color: green; }
</style>
<div id="target" style="font: 11px 'lucida grande'; color: transparent; width: 100px; overflow: hidden;">i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u v w x y z i x m n o p q r s t u </div>
<script>
getSelection().setBaseAndExtent(target, 0, target, 1);
</script>