upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 5138441.html
1 <html>
2 <head>
3 <style>
4 blockquote {
5     border: 1px dashed #aaa;
6     padding: 0.5em;
7     margin: 0.5em;
8 }
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>
17
18 <script>
19 var selection = window.getSelection();
20 var div = document.getElementById("div");
21
22 selection.setPosition(div, 0);
23 document.execCommand("Indent");
24 </script>
25 </body>
26 </html>