diff options
Diffstat (limited to 'testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html')
-rw-r--r-- | testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html b/testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html new file mode 100644 index 0000000000..2b25941ded --- /dev/null +++ b/testing/web-platform/tests/selection/caret/collapse-pre-linestart-ref.html @@ -0,0 +1,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> |