<!DOCTYPE html>
<html>
<body>
<p>This tests copying an element with a background color specified in a style rule that conflicts with the background color of a wrapping style.
The pasted text should have lightgreen background color.</p>
Paste here:
<div contenteditable><div style="background-color: lightgreen;">Copy this line</div>
<span id="target"></span><br>
</div>
<script>
var target = document.getElementById('target');
target.parentNode.focus();
getSelection().collapse(target, 0);
</script>
</body>
</html>
