summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html')
-rw-r--r--testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html b/testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html
new file mode 100644
index 0000000000..71d24f37b4
--- /dev/null
+++ b/testing/web-platform/tests/editing/crashtests/justifycenter-around-textarea.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<script>
+function go() {
+ a.replaceWith(undefined)
+ window.getSelection().modify("move", "right", "word")
+ document.execCommand("justifyCenter", false)
+}
+</script>
+<div contenteditable="true">a</div>
+<textarea>23</textarea>
+<li dir="RTL">
+<strong id="a">
+<svg onload="go()">