Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / create-block-for-style-004.html
blob823da9a1500324ed82c02b3cbf3805f5a8a00545
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 justifyCenterCommand();
23 moveSelectionForwardByLineCommand();
24 moveSelectionForwardByLineCommand();
25 justifyCenterCommand();
28 </script>
30 <title>Editing Test</title>
31 </head>
32 <body contenteditable>
34 <div class="explanation">
35 Should see "foo" and "baz" centered in their own red boxes. The "bar" 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<br>bar<br>baz
41 </div>
42 </div>
44 <script>
45 runEditingTest();
46 </script>
48 </body>
49 </html>