kocienda | 46361d0 | 2005-01-10 18:47:43 +0000 | [diff] [blame] | 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 | moveSelectionForwardByLineCommand(); |
| 24 | justifyCenterCommand(); |
| 25 | } |
| 26 | |
| 27 | </script> |
| 28 | |
| 29 | <title>Editing Test</title> |
| 30 | </head> |
| 31 | <body contenteditable> |
| 32 | |
| 33 | <div class="explanation"> |
| 34 | Should see "baz" centered in its own red box inside the box containing "foo". The "foo" and "bar" lines should not be centered. |
| 35 | </div> |
| 36 | |
| 37 | <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| 38 | <div id="test" class="editing"> |
| 39 | foo |
| 40 | <div class="editing"> |
| 41 | bar |
| 42 | </div> |
| 43 | baz |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <script> |
| 48 | runEditingTest(); |
| 49 | </script> |
| 50 | |
| 51 | </body> |
| 52 | </html> |