13 border:
2px solid blue;
17 background-color: green;
21 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
25 function editingTest() {
26 for (i
= 0; i
< 14; i
++)
27 moveSelectionForwardByCharacterCommand();
28 insertParagraphCommand();
29 insertParagraphCommand();
30 typeCharacterCommand();
35 <title>Editing Test
</title>
37 <body contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
39 Test inserting paragraphs and managing typing style correctly:
"x" under
"line 2" should be bold. Fix for this bug:
40 <a href=
"rdar://problem/3939523"><rdar://problem/
3939523></a> in some cases, text does not retain style info after pressing return twice
41 <div style=
"height: 12px"></div>
43 <p id=
"test">line
1</p>
44 <p><br class=
"khtml-block-placeholder"></p>
46 <p><br class=
"khtml-block-placeholder"></p>