Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 2610675-3.html
blob3c14826e58259634aa3c40419dee22f5aaef5ea0
1 <html>
2 <head>
3 <style>
4 blockquote[type="cite"] {
5 color: blue;
6 margin: 0px;
7 padding-left: 4px;
8 border-left: 2px solid blue;
10 </style>
11 </head>
12 <body>
13 <div id="description">This tests to see that if the caret is in an empty quoted paragraph, and there's no quoted content before that paragraph, then pressing delete removes that paragraph's quoting. Below you should see just an unquoted paragraph.</div>
14 <div id="edit" contentEditable="true"><blockquote type="cite" id="blockquote"><br></blockquote></div>
16 <script>
17 if (window.testRunner)
18 window.testRunner.dumpAsText();
19 blockquote = document.getElementById("blockquote");
20 window.getSelection().collapse(blockquote, 0);
21 document.execCommand("Delete");
22 document.execCommand("InsertText", false, "not quoted");
23 if (window.testRunner)
24 document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
25 </script>
27 </body>
28 </html>