Reviewed by Darin
[WebKit-https.git] / LayoutTests / editing / style / create-block-for-style-011.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 .explanation { 
11     border: 2px solid blue; 
12     padding: 12px; 
13     font-size: 24px; 
14     margin-bottom: 24px;
15 }
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
18
19 <script>
20
21 function editingTest() {
22     moveSelectionForwardByLineCommand();
23     extendSelectionForwardByLineCommand();
24     extendSelectionForwardByCharacterCommand();
25     justifyCenterCommand();
26 }
27
28 </script>
29
30 <title>Editing Test</title> 
31 </head> 
32 <body contenteditable>
33
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>
37
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 </div>
44 baz
45 </div>
46 </div>
47
48 <script>
49 runEditingTest();
50 </script>
51
52 </body>
53 </html>