blob: 33b9cafadc32a5d0a7ba8266b5ff28b14eaf971b [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p id="description">This tests removing format on text that has background color. There should be no span or inline style below:</p>
<div id="editor" contenteditable>hello <span style="color: black; background-color: #ff0000;">world</span> WebKit.</div>
<script type="text/javascript" src="../../resources/dump-as-markup.js"></script>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
var editor = document.getElementById('editor');
editor.focus();
document.execCommand('SelectAll', false, null);
document.execCommand('RemoveFormat', false, null);
Markup.description(document.getElementById('description').textContent);
Markup.dump(editor);
</script>
</body>
</html>