Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-non-static-position.html
blobb7a055f9f9a80699428aeceafed86dec7b6a9590
1 <html>
2 <head>
3 <style>
4 p.li {
5 position: relative;
7 </style>
8 </head>
9 <body>
10 <div id="container">
11 <p id="description"></p>
12 <div id="sample" contenteditable="true">
13 <p class="li" id="e0">Zero</p>
14 <p class="li" id="e1">One</p>
15 <p class="li" id="e2">Two</p>
16 <p class="li" id="e3"><br></p>
17 <p class="li" id="e4"><br></p>
18 <p class="li" id="e5"><br></p>
19 </div>
20 </div>
21 <div id="console"></div>
22 <script src="../../resources/js-test.js"></script>
23 <script>
24 description('Delete key should not remove extra nodes');
25 function $(id) { return document.getElementById(id); }
26 $('sample').focus();
27 var range = document.createRange();
28 range.setStart($('e5'), 1);
29 var selection = window.getSelection();
30 selection.removeAllRanges();
31 selection.addRange(range);
32 document.execCommand('Delete', true);
33 shouldBe('document.querySelectorAll("p.li").length', '5');
34 if (window.testRunner)
35 $('container').outerHTML = '';
36 </script>
37 </body>
38 </html>