4 <style type=
"text/css">
5 .NonInheritableProperties {
6 background-color: yellow
;
7 text-decoration: underline
;
12 <div id=
"test" contenteditable=
"true">
14 <span id=
"spanToMerge" class=
"NonInheritableProperties">bar
</span>
16 <script src=
"../../resources/dump-as-markup.js"></script>
18 Markup
.description('The span style should be preserved when merging a pragraph.\n'
19 + 'The test passes if "bar" contatins the yellow background and it\'s underlined.');
21 var spanToMerge
= document
.getElementById("spanToMerge");
23 getSelection().collapse(spanToMerge
, 0);
24 document
.execCommand("Delete");
25 Markup
.dump(document
.getElementById("test"));