blob: 2fd499015e52e5763624bd4158bf7659c94ea725 [file] [log] [blame]
<html>
<head>
<script>
function test() {
if (window.testRunner)
testRunner.dumpAsText();
var copySection = document.getElementById("copySection");
var pasteSection = document.getElementById("pasteSection");
var selection = window.getSelection();
selection.selectAllChildren(copySection);
document.execCommand("Copy");
selection.setPosition(pasteSection, 0);
document.execCommand("Paste");
console.log((pasteSection.firstChild.style.getPropertyValue("float") != "left")
? "SUCCESS: paste DID NOT keep float:left style."
: "FAILED: paste DID keep float:left style.");
}
</script>
<style>
.floatLeft { float:left }
</style>
</head>
<body onload="test()">
<p>This test is to see if text within a floating block is put onto the paste board wihtout the float style.</p>
<div>
<div id="copySection">
<ul class="floatLeft">
<li>First LI</li>
<li>Second LI</li>
</ul>
</div>
<div style="clear:both"><br>---<br></div>
<div contenteditable="true" id="pasteSection">---</div>
</body>
</html>