<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[184424] trunk/LayoutTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/184424">184424</a></dd>
<dt>Author</dt> <dd>mmaxfield@apple.com</dd>
<dt>Date</dt> <dd>2015-05-15 18:46:53 -0700 (Fri, 15 May 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Test the interaction between font-family and font-weight
https://bugs.webkit.org/show_bug.cgi?id=145078

Reviewed by Dean Jackson.

This test is designed to test the interaction between font-family and font-weight. In particular,
our implementation of font-family accepts PostScript names, which may name a font with a particular
weight. However, there is another CSS property, font-weight, in which the author may also name a
particular weight. Our font selection algorithm takes both of these signals into account when
choosing fonts.

There is currently no good way in JavaScript to find the actual font chosen for some text.
Therefore, the best way to test this aspect of the font selection algorithm is to dump the render
tree, therefore testing glyph advances (which are a property of font weight).

* platform/mac/fast/text/font-weights-expected.txt: Added.
* platform/mac/fast/text/font-weights.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformmacfasttextfontweightsexpectedtxt">trunk/LayoutTests/platform/mac/fast/text/font-weights-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfasttextfontweightshtml">trunk/LayoutTests/platform/mac/fast/text/font-weights.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (184423 => 184424)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-05-16 01:37:26 UTC (rev 184423)
+++ trunk/LayoutTests/ChangeLog        2015-05-16 01:46:53 UTC (rev 184424)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2015-05-15  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
+        Test the interaction between font-family and font-weight
+        https://bugs.webkit.org/show_bug.cgi?id=145078
+
+        Reviewed by Dean Jackson.
+
+        This test is designed to test the interaction between font-family and font-weight. In particular,
+        our implementation of font-family accepts PostScript names, which may name a font with a particular
+        weight. However, there is another CSS property, font-weight, in which the author may also name a
+        particular weight. Our font selection algorithm takes both of these signals into account when
+        choosing fonts.
+
+        There is currently no good way in JavaScript to find the actual font chosen for some text.
+        Therefore, the best way to test this aspect of the font selection algorithm is to dump the render
+        tree, therefore testing glyph advances (which are a property of font weight).
+
+        * platform/mac/fast/text/font-weights-expected.txt: Added.
+        * platform/mac/fast/text/font-weights.html: Added.
+
</ins><span class="cx"> 2015-05-15  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r184421.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacfasttextfontweightsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/fast/text/font-weights-expected.txt (0 => 184424)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/text/font-weights-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac/fast/text/font-weights-expected.txt        2015-05-16 01:46:53 UTC (rev 184424)
</span><span class="lines">@@ -0,0 +1,341 @@
</span><ins>+layer at (0,0) size 785x2139
+  RenderView at (0,0) size 785x600
+layer at (0,0) size 785x2139
+  RenderBlock {HTML} at (0,0) size 785x2139
+    RenderBody {BODY} at (8,8) size 769x2123
+      RenderBlock (anonymous) at (0,0) size 769x144
+        RenderText {#text} at (0,0) size 769x72
+          text run at (0,0) width 746: &quot;This test is designed to test the interaction between font-family and font-weight. In particular, our implementation of&quot;
+          text run at (0,18) width 759: &quot;font-family accepts PostScript names, which may name a font with a particular weight. However, there is another CSS&quot;
+          text run at (0,36) width 769: &quot;property, font-weight, in which the author may also name a particular weight. Our font selection algorithm takes both of&quot;
+          text run at (0,54) width 305: &quot;these signals into account when choosing fonts.&quot;
+        RenderBR {BR} at (304,54) size 1x18
+        RenderBR {BR} at (0,72) size 0x18
+        RenderText {#text} at (0,90) size 767x54
+          text run at (0,90) width 767: &quot;There is currently no good way in JavaScript to find the actual font chosen for some text. Therefore, the best way to test&quot;
+          text run at (0,108) width 732: &quot;this aspect of the font selection algorithm is to dump the render tree, therefore testing glyph advances (which are a&quot;
+          text run at (0,126) width 159: &quot;property of font weight).&quot;
+      RenderBlock {DIV} at (0,144) size 769x18
+        RenderText {#text} at (0,0) size 217x18
+          text run at (0,0) width 217: &quot;Font: Helvetica Neue Weight: 100&quot;
+      RenderBlock {DIV} at (0,162) size 769x18
+        RenderText {#text} at (0,0) size 231x18
+          text run at (0,0) width 231: &quot;Font: Helvetica Neue Weight: 200&quot;
+      RenderBlock {DIV} at (0,180) size 769x18
+        RenderText {#text} at (0,0) size 231x18
+          text run at (0,0) width 231: &quot;Font: Helvetica Neue Weight: 300&quot;
+      RenderBlock {DIV} at (0,198) size 769x18
+        RenderText {#text} at (0,0) size 239x18
+          text run at (0,0) width 239: &quot;Font: Helvetica Neue Weight: 400&quot;
+      RenderBlock {DIV} at (0,216) size 769x19
+        RenderText {#text} at (0,0) size 246x19
+          text run at (0,0) width 246: &quot;Font: Helvetica Neue Weight: 500&quot;
+      RenderBlock {DIV} at (0,235) size 769x19
+        RenderText {#text} at (0,0) size 251x19
+          text run at (0,0) width 251: &quot;Font: Helvetica Neue Weight: 600&quot;
+      RenderBlock {DIV} at (0,254) size 769x19
+        RenderText {#text} at (0,0) size 251x19
+          text run at (0,0) width 251: &quot;Font: Helvetica Neue Weight: 700&quot;
+      RenderBlock {DIV} at (0,273) size 769x19
+        RenderText {#text} at (0,0) size 251x19
+          text run at (0,0) width 251: &quot;Font: Helvetica Neue Weight: 800&quot;
+      RenderBlock {DIV} at (0,292) size 769x19
+        RenderText {#text} at (0,0) size 251x19
+          text run at (0,0) width 251: &quot;Font: Helvetica Neue Weight: 900&quot;
+      RenderBlock {DIV} at (0,311) size 769x18
+        RenderText {#text} at (0,0) size 275x18
+          text run at (0,0) width 275: &quot;Font: HelveticaNeue-UltraLight Weight: 100&quot;
+      RenderBlock {DIV} at (0,329) size 769x18
+        RenderText {#text} at (0,0) size 275x18
+          text run at (0,0) width 275: &quot;Font: HelveticaNeue-UltraLight Weight: 200&quot;
+      RenderBlock {DIV} at (0,347) size 769x18
+        RenderText {#text} at (0,0) size 275x18
+          text run at (0,0) width 275: &quot;Font: HelveticaNeue-UltraLight Weight: 300&quot;
+      RenderBlock {DIV} at (0,365) size 769x18
+        RenderText {#text} at (0,0) size 275x18
+          text run at (0,0) width 275: &quot;Font: HelveticaNeue-UltraLight Weight: 400&quot;
+      RenderBlock {DIV} at (0,383) size 769x18
+        RenderText {#text} at (0,0) size 275x18
+          text run at (0,0) width 275: &quot;Font: HelveticaNeue-UltraLight Weight: 500&quot;
+      RenderBlock {DIV} at (0,401) size 769x19
+        RenderText {#text} at (0,0) size 329x19
+          text run at (0,0) width 329: &quot;Font: HelveticaNeue-UltraLight Weight: 600&quot;
+      RenderBlock {DIV} at (0,420) size 769x19
+        RenderText {#text} at (0,0) size 329x19
+          text run at (0,0) width 329: &quot;Font: HelveticaNeue-UltraLight Weight: 700&quot;
+      RenderBlock {DIV} at (0,439) size 769x19
+        RenderText {#text} at (0,0) size 329x19
+          text run at (0,0) width 329: &quot;Font: HelveticaNeue-UltraLight Weight: 800&quot;
+      RenderBlock {DIV} at (0,458) size 769x19
+        RenderText {#text} at (0,0) size 329x19
+          text run at (0,0) width 329: &quot;Font: HelveticaNeue-UltraLight Weight: 900&quot;
+      RenderBlock {DIV} at (0,477) size 769x18
+        RenderText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: &quot;Font: HelveticaNeue-Light Weight: 100&quot;
+      RenderBlock {DIV} at (0,495) size 769x18
+        RenderText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: &quot;Font: HelveticaNeue-Light Weight: 200&quot;
+      RenderBlock {DIV} at (0,513) size 769x18
+        RenderText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: &quot;Font: HelveticaNeue-Light Weight: 300&quot;
+      RenderBlock {DIV} at (0,531) size 769x18
+        RenderText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: &quot;Font: HelveticaNeue-Light Weight: 400&quot;
+      RenderBlock {DIV} at (0,549) size 769x18
+        RenderText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: &quot;Font: HelveticaNeue-Light Weight: 500&quot;
+      RenderBlock {DIV} at (0,567) size 769x19
+        RenderText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: &quot;Font: HelveticaNeue-Light Weight: 600&quot;
+      RenderBlock {DIV} at (0,586) size 769x19
+        RenderText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: &quot;Font: HelveticaNeue-Light Weight: 700&quot;
+      RenderBlock {DIV} at (0,605) size 769x19
+        RenderText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: &quot;Font: HelveticaNeue-Light Weight: 800&quot;
+      RenderBlock {DIV} at (0,624) size 769x19
+        RenderText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: &quot;Font: HelveticaNeue-Light Weight: 900&quot;
+      RenderBlock {DIV} at (0,643) size 769x18
+        RenderText {#text} at (0,0) size 235x18
+          text run at (0,0) width 235: &quot;Font: HelveticaNeue Weight: 100&quot;
+      RenderBlock {DIV} at (0,661) size 769x18
+        RenderText {#text} at (0,0) size 235x18
+          text run at (0,0) width 235: &quot;Font: HelveticaNeue Weight: 200&quot;
+      RenderBlock {DIV} at (0,679) size 769x18
+        RenderText {#text} at (0,0) size 235x18
+          text run at (0,0) width 235: &quot;Font: HelveticaNeue Weight: 300&quot;
+      RenderBlock {DIV} at (0,697) size 769x18
+        RenderText {#text} at (0,0) size 235x18
+          text run at (0,0) width 235: &quot;Font: HelveticaNeue Weight: 400&quot;
+      RenderBlock {DIV} at (0,715) size 769x18
+        RenderText {#text} at (0,0) size 235x18
+          text run at (0,0) width 235: &quot;Font: HelveticaNeue Weight: 500&quot;
+      RenderBlock {DIV} at (0,733) size 769x19
+        RenderText {#text} at (0,0) size 247x19
+          text run at (0,0) width 247: &quot;Font: HelveticaNeue Weight: 600&quot;
+      RenderBlock {DIV} at (0,752) size 769x19
+        RenderText {#text} at (0,0) size 247x19
+          text run at (0,0) width 247: &quot;Font: HelveticaNeue Weight: 700&quot;
+      RenderBlock {DIV} at (0,771) size 769x19
+        RenderText {#text} at (0,0) size 247x19
+          text run at (0,0) width 247: &quot;Font: HelveticaNeue Weight: 800&quot;
+      RenderBlock {DIV} at (0,790) size 769x19
+        RenderText {#text} at (0,0) size 247x19
+          text run at (0,0) width 247: &quot;Font: HelveticaNeue Weight: 900&quot;
+      RenderBlock {DIV} at (0,809) size 769x19
+        RenderText {#text} at (0,0) size 308x19
+          text run at (0,0) width 308: &quot;Font: HelveticaNeue-Medium Weight: 100&quot;
+      RenderBlock {DIV} at (0,828) size 769x19
+        RenderText {#text} at (0,0) size 308x19
+          text run at (0,0) width 308: &quot;Font: HelveticaNeue-Medium Weight: 200&quot;
+      RenderBlock {DIV} at (0,847) size 769x19
+        RenderText {#text} at (0,0) size 308x19
+          text run at (0,0) width 308: &quot;Font: HelveticaNeue-Medium Weight: 300&quot;
+      RenderBlock {DIV} at (0,866) size 769x19
+        RenderText {#text} at (0,0) size 308x19
+          text run at (0,0) width 308: &quot;Font: HelveticaNeue-Medium Weight: 400&quot;
+      RenderBlock {DIV} at (0,885) size 769x19
+        RenderText {#text} at (0,0) size 308x19
+          text run at (0,0) width 308: &quot;Font: HelveticaNeue-Medium Weight: 500&quot;
+      RenderBlock {DIV} at (0,904) size 769x19
+        RenderText {#text} at (0,0) size 315x19
+          text run at (0,0) width 315: &quot;Font: HelveticaNeue-Medium Weight: 600&quot;
+      RenderBlock {DIV} at (0,923) size 769x19
+        RenderText {#text} at (0,0) size 315x19
+          text run at (0,0) width 315: &quot;Font: HelveticaNeue-Medium Weight: 700&quot;
+      RenderBlock {DIV} at (0,942) size 769x19
+        RenderText {#text} at (0,0) size 315x19
+          text run at (0,0) width 315: &quot;Font: HelveticaNeue-Medium Weight: 800&quot;
+      RenderBlock {DIV} at (0,961) size 769x19
+        RenderText {#text} at (0,0) size 315x19
+          text run at (0,0) width 315: &quot;Font: HelveticaNeue-Medium Weight: 900&quot;
+      RenderBlock {DIV} at (0,980) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 100&quot;
+      RenderBlock {DIV} at (0,999) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 200&quot;
+      RenderBlock {DIV} at (0,1018) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 300&quot;
+      RenderBlock {DIV} at (0,1037) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 400&quot;
+      RenderBlock {DIV} at (0,1056) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 500&quot;
+      RenderBlock {DIV} at (0,1075) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 600&quot;
+      RenderBlock {DIV} at (0,1094) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 700&quot;
+      RenderBlock {DIV} at (0,1113) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 800&quot;
+      RenderBlock {DIV} at (0,1132) size 769x19
+        RenderText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: &quot;Font: HelveticaNeue-Bold Weight: 900&quot;
+      RenderBlock {DIV} at (0,1151) size 769x18
+        RenderText {#text} at (0,0) size 164x18
+          text run at (0,0) width 164: &quot;Font: Avenir Weight: 100&quot;
+      RenderBlock {DIV} at (0,1169) size 769x18
+        RenderText {#text} at (0,0) size 164x18
+          text run at (0,0) width 164: &quot;Font: Avenir Weight: 200&quot;
+      RenderBlock {DIV} at (0,1187) size 769x18
+        RenderText {#text} at (0,0) size 164x18
+          text run at (0,0) width 164: &quot;Font: Avenir Weight: 300&quot;
+      RenderBlock {DIV} at (0,1205) size 769x18
+        RenderText {#text} at (0,0) size 164x18
+          text run at (0,0) width 164: &quot;Font: Avenir Weight: 400&quot;
+      RenderBlock {DIV} at (0,1223) size 769x18
+        RenderText {#text} at (0,0) size 164x18
+          text run at (0,0) width 164: &quot;Font: Avenir Weight: 500&quot;
+      RenderBlock {DIV} at (0,1241) size 769x18
+        RenderText {#text} at (0,0) size 174x18
+          text run at (0,0) width 174: &quot;Font: Avenir Weight: 600&quot;
+      RenderBlock {DIV} at (0,1259) size 769x18
+        RenderText {#text} at (0,0) size 174x18
+          text run at (0,0) width 174: &quot;Font: Avenir Weight: 700&quot;
+      RenderBlock {DIV} at (0,1277) size 769x18
+        RenderText {#text} at (0,0) size 174x18
+          text run at (0,0) width 174: &quot;Font: Avenir Weight: 800&quot;
+      RenderBlock {DIV} at (0,1295) size 769x18
+        RenderText {#text} at (0,0) size 174x18
+          text run at (0,0) width 174: &quot;Font: Avenir Weight: 900&quot;
+      RenderBlock {DIV} at (0,1313) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Light Weight: 100&quot;
+      RenderBlock {DIV} at (0,1331) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Light Weight: 200&quot;
+      RenderBlock {DIV} at (0,1349) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Light Weight: 300&quot;
+      RenderBlock {DIV} at (0,1367) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Light Weight: 400&quot;
+      RenderBlock {DIV} at (0,1385) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Light Weight: 500&quot;
+      RenderBlock {DIV} at (0,1403) size 769x18
+        RenderText {#text} at (0,0) size 216x18
+          text run at (0,0) width 216: &quot;Font: Avenir-Light Weight: 600&quot;
+      RenderBlock {DIV} at (0,1421) size 769x18
+        RenderText {#text} at (0,0) size 216x18
+          text run at (0,0) width 216: &quot;Font: Avenir-Light Weight: 700&quot;
+      RenderBlock {DIV} at (0,1439) size 769x18
+        RenderText {#text} at (0,0) size 216x18
+          text run at (0,0) width 216: &quot;Font: Avenir-Light Weight: 800&quot;
+      RenderBlock {DIV} at (0,1457) size 769x18
+        RenderText {#text} at (0,0) size 216x18
+          text run at (0,0) width 216: &quot;Font: Avenir-Light Weight: 900&quot;
+      RenderBlock {DIV} at (0,1475) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Book Weight: 100&quot;
+      RenderBlock {DIV} at (0,1493) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Book Weight: 200&quot;
+      RenderBlock {DIV} at (0,1511) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Book Weight: 300&quot;
+      RenderBlock {DIV} at (0,1529) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Book Weight: 400&quot;
+      RenderBlock {DIV} at (0,1547) size 769x18
+        RenderText {#text} at (0,0) size 203x18
+          text run at (0,0) width 203: &quot;Font: Avenir-Book Weight: 500&quot;
+      RenderBlock {DIV} at (0,1565) size 769x18
+        RenderText {#text} at (0,0) size 214x18
+          text run at (0,0) width 214: &quot;Font: Avenir-Book Weight: 600&quot;
+      RenderBlock {DIV} at (0,1583) size 769x18
+        RenderText {#text} at (0,0) size 214x18
+          text run at (0,0) width 214: &quot;Font: Avenir-Book Weight: 700&quot;
+      RenderBlock {DIV} at (0,1601) size 769x18
+        RenderText {#text} at (0,0) size 214x18
+          text run at (0,0) width 214: &quot;Font: Avenir-Book Weight: 800&quot;
+      RenderBlock {DIV} at (0,1619) size 769x18
+        RenderText {#text} at (0,0) size 214x18
+          text run at (0,0) width 214: &quot;Font: Avenir-Book Weight: 900&quot;
+      RenderBlock {DIV} at (0,1637) size 769x18
+        RenderText {#text} at (0,0) size 223x18
+          text run at (0,0) width 223: &quot;Font: Avenir-Medium Weight: 100&quot;
+      RenderBlock {DIV} at (0,1655) size 769x18
+        RenderText {#text} at (0,0) size 223x18
+          text run at (0,0) width 223: &quot;Font: Avenir-Medium Weight: 200&quot;
+      RenderBlock {DIV} at (0,1673) size 769x18
+        RenderText {#text} at (0,0) size 223x18
+          text run at (0,0) width 223: &quot;Font: Avenir-Medium Weight: 300&quot;
+      RenderBlock {DIV} at (0,1691) size 769x18
+        RenderText {#text} at (0,0) size 223x18
+          text run at (0,0) width 223: &quot;Font: Avenir-Medium Weight: 400&quot;
+      RenderBlock {DIV} at (0,1709) size 769x18
+        RenderText {#text} at (0,0) size 223x18
+          text run at (0,0) width 223: &quot;Font: Avenir-Medium Weight: 500&quot;
+      RenderBlock {DIV} at (0,1727) size 769x18
+        RenderText {#text} at (0,0) size 236x18
+          text run at (0,0) width 236: &quot;Font: Avenir-Medium Weight: 600&quot;
+      RenderBlock {DIV} at (0,1745) size 769x18
+        RenderText {#text} at (0,0) size 236x18
+          text run at (0,0) width 236: &quot;Font: Avenir-Medium Weight: 700&quot;
+      RenderBlock {DIV} at (0,1763) size 769x18
+        RenderText {#text} at (0,0) size 236x18
+          text run at (0,0) width 236: &quot;Font: Avenir-Medium Weight: 800&quot;
+      RenderBlock {DIV} at (0,1781) size 769x18
+        RenderText {#text} at (0,0) size 236x18
+          text run at (0,0) width 236: &quot;Font: Avenir-Medium Weight: 900&quot;
+      RenderBlock {DIV} at (0,1799) size 769x18
+        RenderText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: &quot;Font: Avenir-Black Weight: 100&quot;
+      RenderBlock {DIV} at (0,1817) size 769x18
+        RenderText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: &quot;Font: Avenir-Black Weight: 200&quot;
+      RenderBlock {DIV} at (0,1835) size 769x18
+        RenderText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: &quot;Font: Avenir-Black Weight: 300&quot;
+      RenderBlock {DIV} at (0,1853) size 769x18
+        RenderText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: &quot;Font: Avenir-Black Weight: 400&quot;
+      RenderBlock {DIV} at (0,1871) size 769x18
+        RenderText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: &quot;Font: Avenir-Black Weight: 500&quot;
+      RenderBlock {DIV} at (0,1889) size 769x18
+        RenderText {#text} at (0,0) size 218x18
+          text run at (0,0) width 218: &quot;Font: Avenir-Black Weight: 600&quot;
+      RenderBlock {DIV} at (0,1907) size 769x18
+        RenderText {#text} at (0,0) size 218x18
+          text run at (0,0) width 218: &quot;Font: Avenir-Black Weight: 700&quot;
+      RenderBlock {DIV} at (0,1925) size 769x18
+        RenderText {#text} at (0,0) size 218x18
+          text run at (0,0) width 218: &quot;Font: Avenir-Black Weight: 800&quot;
+      RenderBlock {DIV} at (0,1943) size 769x18
+        RenderText {#text} at (0,0) size 218x18
+          text run at (0,0) width 218: &quot;Font: Avenir-Black Weight: 900&quot;
+      RenderBlock {DIV} at (0,1961) size 769x18
+        RenderText {#text} at (0,0) size 211x18
+          text run at (0,0) width 211: &quot;Font: Avenir-Heavy Weight: 100&quot;
+      RenderBlock {DIV} at (0,1979) size 769x18
+        RenderText {#text} at (0,0) size 211x18
+          text run at (0,0) width 211: &quot;Font: Avenir-Heavy Weight: 200&quot;
+      RenderBlock {DIV} at (0,1997) size 769x18
+        RenderText {#text} at (0,0) size 211x18
+          text run at (0,0) width 211: &quot;Font: Avenir-Heavy Weight: 300&quot;
+      RenderBlock {DIV} at (0,2015) size 769x18
+        RenderText {#text} at (0,0) size 211x18
+          text run at (0,0) width 211: &quot;Font: Avenir-Heavy Weight: 400&quot;
+      RenderBlock {DIV} at (0,2033) size 769x18
+        RenderText {#text} at (0,0) size 211x18
+          text run at (0,0) width 211: &quot;Font: Avenir-Heavy Weight: 500&quot;
+      RenderBlock {DIV} at (0,2051) size 769x18
+        RenderText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: &quot;Font: Avenir-Heavy Weight: 600&quot;
+      RenderBlock {DIV} at (0,2069) size 769x18
+        RenderText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: &quot;Font: Avenir-Heavy Weight: 700&quot;
+      RenderBlock {DIV} at (0,2087) size 769x18
+        RenderText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: &quot;Font: Avenir-Heavy Weight: 800&quot;
+      RenderBlock {DIV} at (0,2105) size 769x18
+        RenderText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: &quot;Font: Avenir-Heavy Weight: 900&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacfasttextfontweightshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac/fast/text/font-weights.html (0 => 184424)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/text/font-weights.html                                (rev 0)
+++ trunk/LayoutTests/platform/mac/fast/text/font-weights.html        2015-05-16 01:46:53 UTC (rev 184424)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;/head&gt;
+&lt;body&gt;
+This test is designed to test the interaction between font-family and font-weight. In particular, our implementation of font-family accepts PostScript names, which may name a font with a particular weight. However, there is another CSS property, font-weight, in which the author may also name a particular weight. Our font selection algorithm takes both of these signals into account when choosing fonts.&lt;br&gt;&lt;br&gt;There is currently no good way in JavaScript to find the actual font chosen for some text. Therefore, the best way to test this aspect of the font selection algorithm is to dump the render tree, therefore testing glyph advances (which are a property of font weight).
+&lt;script&gt;
+function generateElements(fontNames) {
+    fontNames.forEach(function(fontName) {
+        for (var fontWeight = 100; fontWeight &lt; 1000; fontWeight += 100) {
+            var d = document.createElement(&quot;div&quot;);
+            d.style.fontFamily = fontName;
+            d.style.fontWeight = fontWeight;
+            d.innerText = &quot;Font: &quot; + fontName + &quot; Weight: &quot; + fontWeight;
+            document.body.appendChild(d);
+        }
+    });
+}
+var helveticaFonts = [&quot;Helvetica Neue&quot;, &quot;HelveticaNeue-UltraLight&quot;, &quot;HelveticaNeue-Light&quot;, &quot;HelveticaNeue&quot;, &quot;HelveticaNeue-Medium&quot;, &quot;HelveticaNeue-Bold&quot;];
+var avenirFonts = [&quot;Avenir&quot;, &quot;Avenir-Light&quot;, &quot;Avenir-Book&quot;, &quot;Avenir-Medium&quot;, &quot;Avenir-Black&quot;, &quot;Avenir-Heavy&quot;];
+generateElements(helveticaFonts);
+generateElements(avenirFonts);
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre>
</div>
</div>

</body>
</html>