<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests for a hang on delete where a style rule would cause style spans
// in content moved after the delete to be displayed as blocks. You should see
// Hello<b>World</b> below.
selection_test(
[
'<style>#d1 span { float:right; }</style>',
'<div contenteditable>',
'<div id="d1">Hello</div>',
'<div id="d2" style="font-weight:bold">|World</div>',
'</div>',
],
'Delete',
[
'<style>#d1 span { float:right; }</style>',
'<div contenteditable>',
'<div id="d1">',
'Hello|',
'<span style="font-weight: bold; float: none;">World</span>',
'</div>',
'</div>',
]);
</script>