3 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
8 testRunner
.dumpAsText();
10 var target
= document
.getElementById("target");
11 getSelection().setBaseAndExtent(target
.firstChild
, 0, target
.frstChild
, 0);
12 moveSelectionForwardByLineCommand();
14 document
.getElementById("result").innerText
= getSelection().baseOffset
== 63 ? "PASS" : "FAIL";
18 <body onload=
"test()">
20 Test for
<i><a href=
"http://bugs.webkit.org/show_bug.cgi?id=14972">http://bugs.webkit.org/show_bug.cgi?id=
14972</a>
21 Moving cursor down in contentEditable section fails if styled line-height:
1em
</i>.
26 <p contenteditable=
"true" id=
"target" style=
"white-space: pre-line; line-height: 1em;">Pressing the down arrow when the caret is on this line
27 should move it to this line.