Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / merge-paragraphs-with-transparent-background.html
blob7e0c7098b013f6c28a6055d032abc5bb5110a393
1 <!DOCTYPE html>
2 <html style="background: transparent; text-decoration: none">
3 <body>
4 <p id="description">This tests merging paragraphs inside a document with background: transparent in html element's inline style declaration.
5 WebKit should not generate a span with background-color property in such cases.</p>
6 <div id="container" contenteditable>
7 <p id="destination">hello</p>
8 <p id="target">world</p>
9 </div>
10 <script src="../../resources/dump-as-markup.js"></script>
11 <script>
13 Markup.description(document.getElementById('description').textContent);
15 document.getElementById('container').focus();
16 var target = document.getElementById('target');
17 getSelection().collapse(target, 0);
18 document.execCommand('Delete', false, null);
20 Markup.dump(document.getElementById('container'));
22 </script>
23 </body>
24 </html>