blob: 42a0461f5ffadeecea43ee44b915a91f7856360b [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This tests moving the caret backward through content of mixed editability. The caret should back to just before the outlined table.</p>
<div contenteditable="true">
editable
<table border="1" contenteditable="false"><tbody><tr><td><div style="display:inline-block; "><span>static</span><span id="test" contenteditable="plaintext-only">editable</span></div></td></tr></tbody></table>
editable
</div>
<script>
var e = document.getElementById("test");
var s = window.getSelection();
s.setPosition(e, 0);
s.modify("move", "forward", "character");
s.modify("move", "backward", "lineboundary");
</script>