blob: a0e8d3f2241f2f40ce503fe58e33ae1aca2dc740 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>Redundant background-color</title>
<script src="../../resources/dump-as-markup.js"></script>
</head>
<body>
<div id="div">Hello</div>
<script>
Markup.description("This tests to make sure that WebKit removes redundant background-color property after execCommand. (See the bug 91783). There should be no background-color property below.");
var div = document.getElementById("div");
div.contentEditable = true;
div.style.cssText = "background-color: white;";
var range = document.createRange();
range.selectNodeContents(div);
window.getSelection().addRange(range);
document.execCommand("insertUnorderedList");
Markup.dump(div);
</script>
</body>
</html>