blob: 350ac36ff0a6d5903f8c85f1c968d719a7716bd9 [file] [log] [blame]
<!DOCTYPE html>
This tests platform specific system font styles. If any of the styles appear in monospace the test fails.
<hr>
<div style="font-family: monospace;" id="container"></div>
<script>
var systemFontStyles = [
'caption',
'icon',
'menu',
'message-box',
'small-caption',
'status-bar',
'-webkit-mini-control',
'-webkit-small-control',
'-webkit-control',
];
systemFontStyles.forEach(function(systemFont) {
var item = document.createElement('div');
container.appendChild(item);
item.style.font = systemFont;
item.textContent = systemFont + ': ' + getComputedStyle(item).font;
});
if (window.testRunner) {
testRunner.dumpAsText();
}
</script>