summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html
blob: 2b25941ded7e51d4a62cfc536f42de0aea58a50c (plain)
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<meta charset="utf-8">
<title>selection.collapse() to line start</title>
<pre id=target contenteditable>ABC<br><br></pre>
<script>
  target.focus();
  getSelection().collapse(target, 3);
</script>