Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/css2-system-fonts.html

Issue 1820773002: getComputedStyle() should return used value for 'line-height' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 This tests platform specific system font styles. If any of the styles appear in monospace the test fails. 2 This tests platform specific system font styles. If any of the styles appear in monospace the test fails.
3 <hr> 3 <hr>
4 <div style="font-family: monospace;" id="container"></div> 4 <div style="font-family: monospace;" id="container"></div>
5 <script> 5 <script>
6 var systemFontStyles = [ 6 var systemFontStyles = [
7 'caption', 7 'caption',
8 'icon', 8 'icon',
9 'menu', 9 'menu',
10 'message-box', 10 'message-box',
11 'small-caption', 11 'small-caption',
12 'status-bar', 12 'status-bar',
13 ]; 13 ];
14 systemFontStyles.forEach(function(systemFont) { 14 systemFontStyles.forEach(function(systemFont) {
15 var item = document.createElement('div'); 15 var item = document.createElement('div');
16 container.appendChild(item); 16 container.appendChild(item);
17 item.style.font = systemFont; 17 item.style.font = systemFont;
18 item.textContent = systemFont + ': ' + getComputedStyle(item).font; 18 item.textContent = systemFont + ': ' + getComputedStyle(item).fontFamily;
19 }); 19 });
20 if (window.testRunner) { 20 if (window.testRunner) {
21 testRunner.dumpAsText(); 21 testRunner.dumpAsText();
22 } 22 }
23 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698