Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / css2-system-fonts.html
blob301c677160dabb8e8613abcb646d5ec3847a74ae
1 <!DOCTYPE html>
2 This tests platform specific system font styles. If any of the styles appear in monospace the test fails.
3 <hr>
4 <div style="font-family: monospace;" id="container"></div>
5 <script>
6 var systemFontStyles = [
7 'caption',
8 'icon',
9 'menu',
10 'message-box',
11 'small-caption',
12 'status-bar',
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;
19 });
20 if (window.testRunner) {
21 testRunner.dumpAsText();
23 </script>