blob: 98d3ca7da239c72d20b44cfe94f405cbee040e6f [file] [log] [blame]
<head>
<script>
function runTest() {
document.body.focus();
document.execCommand("SelectAll");
if (!layoutTestController)
return;
layoutTestController.dumpAsText();
document.execCommand("Cut");
document.body.style.backgroundColor = "white";
document.execCommand("Paste");
document.body.innerText = document.body.innerHTML;
}
</script>
</head>
<body onLoad="runTest();" contentEditable="true" style="background-color: #bbb;">This tests to make sure that we wrap copied markup in a div to hold a fully selected body's attributes and style when the that body has a background-color. If you copy and paste this text into Mail, it should have a grey background.</body>