summaryrefslogtreecommitdiffstats
path: root/editor/reftests/spellcheck-contenteditable-focused-reframe.html
diff options
context:
space:
mode:
Diffstat (limited to 'editor/reftests/spellcheck-contenteditable-focused-reframe.html')
-rw-r--r--editor/reftests/spellcheck-contenteditable-focused-reframe.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/editor/reftests/spellcheck-contenteditable-focused-reframe.html b/editor/reftests/spellcheck-contenteditable-focused-reframe.html
new file mode 100644
index 000000000..733ee05bb
--- /dev/null
+++ b/editor/reftests/spellcheck-contenteditable-focused-reframe.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+ <div contenteditable id="testBox" onfocus="reframe(this);">blahblahblah</div>
+ <script type="text/javascript">
+ function reframe(textbox) {
+ textbox.style.display = "none";
+ textbox.style.display = "";
+ textbox.clientWidth;
+ }
+ //Adding focus to the textbox should trigger a spellcheck
+ document.getElementById("testBox").focus();
+ document.getElementById("testBox").blur();
+ </script>
+
+</body>
+</html>