1 <p>This tests that inherited block properties do not propigate to the editing style span.
</p>
2 <div id=
"copy" contenteditable=
"true" style=
"margin: 0 0 0 50px; text-indent: -50px; font-weight: bold; text-align: center;">Some text that is bold.
</div>
3 <div id=
"paste" contenteditable=
"true">Some text that is
</div>
6 var copy
= document
.getElementById("copy");
7 window
.getSelection().setBaseAndExtent(copy
.firstChild
, 18, copy
, 1);
8 document
.execCommand("Copy");
9 var paste
= document
.getElementById("paste");
10 window
.getSelection().setBaseAndExtent(paste
, 1, paste
, 1);
11 document
.execCommand("Paste");
12 document
.execCommand("InsertText", false, "\nThis text should bold and left justified with \"Some text...\".");