11 border:
2px solid blue;
17 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
21 internals
.settings
.setEditingBehavior('mac');
23 function editingTest() {
24 extendSelectionForwardByWordCommand();
25 extendSelectionForwardByLineCommand();
26 extendSelectionForwardByWordCommand();
27 for (i
= 0; i
< 6; i
++)
28 fontSizeDeltaCommand("+1px");
33 <title>Editing Test
</title>
35 <body contenteditable=
"true">
36 <div class=
"explanation">
37 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.
40 <div style=
"font-size: 24px; margin-bottom: 16px;">Size check:
<span id=
"check"></span></div>
42 <div id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
43 <div id=
"test" class=
"editing">There is a tide
44 <div id=
"foo" class=
"editing">
47 Which taken at the flood
53 test
= document
.getElementById("test").firstChild
;
54 check
= document
.getElementById("check");
55 size
= document
.defaultView
.getComputedStyle(test
, "").getPropertyValue("font-size");
56 check
.innerHTML
= size
;