8 text-decoration: underline;
11 <script src=
"../../resources/dump-as-markup.js"></script>
12 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
15 function editingTest() {
16 if (window
.testRunner
)
17 testRunner
.dumpAsText();
18 for (i
= 0; i
< 6; i
++)
19 typeCharacterCommand();
20 typeCharacterCommand(' ');
21 for (i
= 0; i
< 6; i
++)
22 typeCharacterCommand();
23 typeCharacterCommand(' ');
24 for (i
= 0; i
< 6; i
++)
25 typeCharacterCommand();
26 moveSelectionBackwardByWordCommand();
27 moveSelectionBackwardByWordCommand();
28 extendSelectionForwardByWordCommand();
30 document
.body
.appendChild(document
.createTextNode(document
.getElementById('root').innerHTML
));
34 <title>Editing Test
</title>
37 <div contenteditable
id=
"root" class=
"editing">
38 <span id=
"test"></span>
41 Markup
.description('This tests removing underline from stylesheet (.editing has underline). Because text-decoration that comes from a style rule cannot be pushed down, the underline should stay. (see bug 27809).');