| <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| internals.settings.setEditingBehavior('mac'); |
| extendSelectionForwardByWordCommand(); |
| extendSelectionForwardByLineCommand(); |
| extendSelectionForwardByWordCommand(); |
| fontSizeDeltaCommand("+1px"); |
| <title>Editing Test</title> |
| <body contenteditable="true"> |
| <div class="explanation"> |
| Size check should say: 30px. All text on the first line, and the first two words of the second line, should appear to be 30px. |
| <div style="font-size: 24px; margin-bottom: 16px;">Size check: <span id="check"></span></div> |
| <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| <div id="test" class="editing">There is a tide |
| <div id="foo" class="editing"> |
| test = document.getElementById("test").firstChild; |
| check = document.getElementById("check"); |
| size = document.defaultView.getComputedStyle(test, "").getPropertyValue("font-size"); |