10 border:
2px solid blue;
15 .scenario { margin-bottom:
16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
17 .expected-results:first-line { font-weight: bold }
19 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
23 function editingTest() {
24 for (i
= 0; i
< 3; i
++)
25 moveSelectionForwardByCharacterCommand();
26 insertParagraphCommand();
31 <title>Editing Test
</title>
35 <div class=
"explanation">
36 <div class=
"scenario">
40 <a href=
"rdar://problem/3977962"><rdar://problem/
3977962></a> font loses bold style after pasting next to existing text and pressing return
42 <div class=
"expected-results">
45 Should see this content in the red box below:
<div>foo
<div><b>bar
</b></div></div>
49 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
50 <div id=
"test" class=
"editing"><div>foo
<b>bar
</b></div></div>