4 <p>This is a test of styleWithCSS.
</p>
5 <div id=
"test" contenteditable
>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 var test
= document
.getElementById('test');
14 document
.execCommand('styleWithCSS', false, true);
15 window
.getSelection().selectAllChildren(test
);
16 document
.execCommand('bold', false, null);
17 var firstInnerHTML
= test
.innerHTML
;
19 document
.execCommand('undo', false, null);
20 document
.execCommand('styleWithCSS', false, true);
21 document
.execCommand('bold', false, null);
24 if (firstInnerHTML
!= test
.innerHTML
)
25 result
= 'FAIL: ' + firstInnerHTML
+ ' does not match ' + test
.innerHTML
;
26 document
.body
.appendChild(document
.createTextNode(result
));