10 <div id="description">This tests for a copy bug where styles from matched rules would be placed on elements and take precedence over styles from their inline style declarations. When run manually, you must do a Paste. The text in the bottom region should be blue.</div>
11 <div id="copy" contenteditable="true">
12 <p style="color: blue;">This text</p>
13 <p style="color: blue;">should be</p>
14 <p style="color: blue;">blue</p>
17 <div id="paste" contenteditable="true"></div>
20 copy = document.getElementById("copy");
22 document.execCommand("selectall");
23 document.execCommand("copy");
24 paste = document.getElementById("paste");
26 document.execCommand("paste");
27 if (window.testRunner) {
28 window.testRunner.dumpAsText();
29 document.body.innerText = document.getElementById("description").innerText + "\n\n" + copy.innerHTML;