| <p>This tests that inherited block properties do not propigate to the editing style span.</p> |
| <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> |
| <div id="paste" contenteditable="true">Some text that is </div> |
| |
| <script> |
| var copy = document.getElementById("copy"); |
| window.getSelection().setBaseAndExtent(copy.firstChild, 18, copy, 1); |
| document.execCommand("Copy"); |
| var paste = document.getElementById("paste"); |
| window.getSelection().setBaseAndExtent(paste, 1, paste, 1); |
| document.execCommand("Paste"); |
| document.execCommand("InsertText", false, "\nThis text should bold and left justified with \"Some text...\"."); |
| </script> |