2 This tests platform specific system font styles. If any of the styles appear in monospace the test fails.
4 <div style=
"font-family: monospace;" id=
"container"></div>
6 var systemFontStyles
= [
14 systemFontStyles
.forEach(function(systemFont
) {
15 var item
= document
.createElement('div');
16 container
.appendChild(item
);
17 item
.style
.font
= systemFont
;
18 item
.textContent
= systemFont
+ ': ' + getComputedStyle(item
).font
;
20 if (window
.testRunner
) {
21 testRunner
.dumpAsText();