6 testRunner.dumpAsText();
8 var copySection = document.getElementById("copySection");
9 var pasteSection = document.getElementById("pasteSection");
10 var selection = window.getSelection();
12 selection.selectAllChildren(copySection);
13 document.execCommand("Copy");
15 selection.collapse(pasteSection, 0);
16 document.execCommand("Paste");
18 console.log((pasteSection.firstChild.style.getPropertyValue("float") != "left")
19 ? "SUCCESS: paste DID NOT keep float:left style."
20 : "FAILED: paste DID keep float:left style.");
24 .floatLeft { float:left }
27 <body onload="test()">
29 <p>This test is to see if text within a floating block is put onto the paste board wihtout the float style.</p>
31 <div id="copySection">
32 <ul class="floatLeft">
38 <div style="clear:both"><br>---<br></div>
39 <div contenteditable="true" id="pasteSection">---</div>