Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5138441.html
blob53fbbc3a683df6f13ebb0d4f6f97752f733db131
1 <html>
2 <head>
3 <style>
4 blockquote {
5 border: 1px dashed #aaa;
6 padding: 0.5em;
7 margin: 0.5em;
9 </style>
10 </head>
11 <body>
12 <p>This tests for a bug where indented text would appear quoted in GoogleDocs. Google docs uses blockquotes and FormatBlock to implement a "Quote Text" feature, and style rules for blockquotes appeared on the blockquotes that we use to implement indenting.</p>
13 <div contenteditable="true">
14 <div id="div">This should be indented, not quoted.</div>
15 <blockquote>This text should be Quoted.</blockquote>
16 </div>
18 <script>
19 var selection = window.getSelection();
20 var div = document.getElementById("div");
22 selection.collapse(div, 0);
23 document.execCommand("Indent");
24 </script>
25 </body>
26 </html>