Reviewed by Darin
[WebKit-https.git] / LayoutTests / editing / style / create-block-for-style-007.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     justifyCenterCommand();
23 }
24
25 </script>
26
27 <title>Editing Test</title> 
28 </head> 
29 <body contenteditable>
30
31 <div class="explanation">
32 Should see "foo" centered in its own red box. The "bar" and "baz" lines should not be centered.
33 </div>
34
35 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
36 <div id="test" class="editing">
37 foo
38 <div class="editing">
39 bar
40 </div>
41 baz
42 </div>
43 </div>
44
45 <script>
46 runEditingTest();
47 </script>
48
49 </body>
50 </html>