blob: b47affaa9e6fc52f7289c80ff537b7ef93c7b133 [file] [log] [blame]
<!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>