11 border: 2px solid blue;
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
21 function editingTest() {
22 moveSelectionForwardByLineCommand();
23 for (i = 0; i < 5; i++)
24 extendSelectionForwardByWordCommand();
25 for (i = 0; i < 6; i++)
26 fontSizeDeltaCommand("+1px");
31 <title>Editing Test</title>
33 <body contenteditable="true">
34 <div class="explanation">
35 Size check should say: 30px. All text in the red boxes should appear to be 24px. This test checks removing
36 font size tags when they are no longer necessary.
39 <div style="font-size: 24px; margin-bottom: 16px;">Size check: <span id="check"></span></div>
41 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
42 <div id="test" class="editing">There is a tide
43 <div id="sizeTest" class="editing">In the affairs of men
45 Which taken at the flood
52 test = document.getElementById("sizeTest");
53 check = document.getElementById("check");
54 size = document.defaultView.getComputedStyle(test, "").getPropertyValue("font-size");
55 check.innerHTML = size;
56 for (i = 0; i < 6; i++)
57 fontSizeDeltaCommand("-1px");