11 border:
2px solid blue;
17 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
21 function editingTest() {
22 for (i
= 0; i
< 2; i
++)
23 extendSelectionForwardByLineCommand();
24 for (i
= 0; i
< 5; i
++)
25 extendSelectionForwardByWordCommand();
26 for (i
= 0; i
< 6; i
++)
27 fontSizeDeltaCommand("+1px");
32 <title>Editing Test
</title>
34 <body contenteditable=
"true">
35 <div class=
"explanation">
36 Size check should say:
30px. All text in the red boxes should appear to be
30px.
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">
47 Which taken at the flood
53 test
= document
.getElementById("test");
54 check
= document
.getElementById("check");
55 size
= document
.defaultView
.getComputedStyle(test
, "").getPropertyValue("font-size");
56 check
.innerHTML
= size
;