Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / create-block-for-style-012.html
blob4e9fdade87dc732cfb294ce68e503315c6f5fcd2
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 the "bar" and "baz" lines centered in their own red boxes. The "foo" line should not be 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 class="editing">
42 bar
43 <br>baz
44 </div>
45 </div>
46 </div>
48 <script>
49 runEditingTest();
50 </script>
52 </body>
53 </html>