Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / break-blockquote-after-delete.html
blob8e40bdc22729e0fba40870b324fd69146fcc6946
1 <html>
2 <head>
3 <style>
4 blockquote {
5 color: blue;
6 border-left: 2px solid blue;
7 margin: 0px;
8 padding-left: 10px;
11 blockquote #dq {
12 color: green;
13 border-color: green;
17 </style>
18 <script>
19 function test()
21 window.getSelection().setBaseAndExtent(document.getElementById('line'), 0, document.getElementById('dq'), 0);
22 document.execCommand("Delete");
23 document.execCommand("InsertNewlineInQuotedContent");
24 document.execCommand("InsertText", true, "black");
26 </script>
27 </head>
28 <body onload="test()">This tests that the blockquote's typing style doesn't remain after breaking the blockquote and typing in the unquoted area.<br><br>
29 <div contenteditable>
30 <blockquote type="cite">blue
31 <div id="line"><br></div>
32 <div>
33 <blockquote type="cite" id="dq">green</blockquote>
34 </div>
35 </blockquote>
36 </div>
37 </body>
38 </html>