blob: 9c1aebff0d1a5e4e9c5e25332dcff159eb9f1634 [file] [log] [blame]
<html style="font-weight: bold;">
<body style="color: #999;">
<p>This tests for a bug where performing the Remove Format operation on content would apply the document's style to it, not the editable regions default style. The text below should not be bold, and should be black.</p>
<div id="div" contenteditable="true" style="font-weight: normal; color: black;">foo <i>bar</i> baz</div>
<script>
var div = document.getElementById("div");
div.focus();
document.execCommand("RemoveFormat");
</script>
</body>