4 <p>This tests querying BackColor and FontSize of the typing style. WebKit should not modify the typing style and should return the correct values.
</p>
5 <div id=
"test" contenteditable
></div>
9 testRunner
.dumpAsText();
11 var test
= document
.getElementById('test');
13 window
.getSelection().collapse(test
, test
.childNodes
.length
);
14 document
.execCommand('backColor', false, '#ff0000');
15 document
.execCommand('fontSize', false, 5);
16 var backColor
= document
.queryCommandValue('backColor');
17 var fontSize
= document
.queryCommandValue('fontSize');
18 document
.writeln(backColor
== 'rgb(255, 0, 0)' ? 'PASS: background color' : "FAIL: background color; expected rgb(255, 0, 0) but got " + backColor
);
19 document
.writeln(fontSize
== 5 ? 'PASS: font size' : "FAIL: font size; expected 5 but got " + fontSize
);