Skip to content

Truly independent web browser

530 B
Raw Blame
<!DOCTYPE html>
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-530" />
<style>
body { margin: 0; }
#container { width: 100px; }
::selection {
    background-color: rgba(61, 174, 233, 0.5);
    color: black;
}
</style>
<!-- Test that trailing whitespace at end of wrapped lines is included in selection highlight. -->
<div id="container"><span id="text">one two three four</span></div>
<script>
  let range = document.createRange();
  range.selectNodeContents(text);
  window.getSelection().addRange(range);
</script>