Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / create-block-for-style-006.html
blobe2bf8e1b04e159500f8c9ef5825d3d8b006d8637
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 .explanation {
11 border: 2px solid blue;
12 padding: 12px;
13 font-size: 24px;
14 margin-bottom: 24px;
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19 <script>
21 function editingTest() {
22 moveSelectionForwardByLineCommand();
23 extendSelectionForwardByLineCommand();
24 extendSelectionForwardByCharacterCommand();
25 justifyCenterCommand();
28 </script>
30 <title>Editing Test</title>
31 </head>
32 <body contenteditable>
34 <div class="explanation">
35 Should see "bar" and "baz" centered in their own red boxes. The "foo" line should be in its own red box, but not centered.
36 </div>
38 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
39 <div id="test" class="editing">
40 foo
41 </div>
42 <div class="editing">
43 bar
44 </div>
45 <div class="editing">
46 baz
47 </div>
48 </div>
50 <script>
51 runEditingTest();
52 </script>
54 </body>
55 </html>