| .scenario { margin-bottom: 16px;} |
| .scenario:first-line { font-weight: bold; margin-bottom: 16px;} |
| .expected-results:first-line { font-weight: bold } |
| <script src="../editing.js"></script> |
| <script src="../../resources/dump-as-markup.js"></script> |
| <title>Editing Test</title> |
| <p id="description">When copying some text, under certain circumstances, empty style (or font) tags are created. This test checks that there is no empty <font> tag after 'foo' and before 'bar'.</p> |
| <div contenteditable id="root"> |
| <div id="test" class="editing"> |
| <div style="color: rgb(255, 0, 0);" > |
| Markup.description(document.getElementById('description').textContent); |
| setSelectionCommand(document.getElementById("test"),0,document.getElementById("test"),5); |
| Markup.dump('root', 'After copy'); |
| Markup.dump('root', 'After paste'); |