<!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>[214419] trunk</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/214419">214419</a></dd>
<dt>Author</dt> <dd>mmaxfield@apple.com</dd>
<dt>Date</dt> <dd>2017-03-27 10:50:33 -0700 (Mon, 27 Mar 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>font variation properties don't need to accept numbers
https://bugs.webkit.org/show_bug.cgi?id=169357

Reviewed by Antti Koivisto.

Source/WebCore:

The CSS Fonts level 4 spec stabilized the grammar accepted by font-weight,
font-style, and font-stretch. The changes are that font-style and
font-stretch no longer accept raw numbers, and the @font-face descriptor
ranges are now separated by spaces instead of slashes.

Tests: fast/text/font-selection-font-face-parse.html
       fast/text/font-selection-font-loading-api-parse.html
       fast/text/font-stretch-parse.html
       fast/text/font-style-parse.html
       fast/text/variations/font-selection-properties.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::fontWeightFromStyleValue):
(WebCore::fontWeightFromStyle):
(WebCore::ComputedStyleExtractor::fontStretchFromStyleValue):
(WebCore::fontStretchFromStyle):
(WebCore::ComputedStyleExtractor::fontStyleFromStyleValue):
(WebCore::fontStyleFromStyle):
* css/CSSComputedStyleDeclaration.h:
* css/FontFace.cpp:
(WebCore::FontFace::style):
(WebCore::FontFace::weight):
(WebCore::FontFace::stretch):
(WebCore::rangeIsSingleValue): Deleted.
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertFontStretchFromValue):
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeFontWeightRange):
(WebCore::consumeFontStretch):
(WebCore::consumeFontStretchRange):
(WebCore::consumeFontStyle):
(WebCore::consumeFontStyleRange):

LayoutTests:

* fast/text/font-selection-font-face-parse-expected.txt:
* fast/text/font-selection-font-face-parse.html:
* fast/text/font-selection-font-loading-api-parse-expected.txt:
* fast/text/font-selection-font-loading-api-parse.html:
* fast/text/font-stretch-parse-expected.txt:
* fast/text/font-stretch-parse.html:
* fast/text/font-style-parse-expected.txt:
* fast/text/font-style-parse.html:
* fast/text/variations/font-selection-properties.html:
* platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfasttextfontselectionfontfaceparseexpectedtxt">trunk/LayoutTests/fast/text/font-selection-font-face-parse-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextfontselectionfontfaceparsehtml">trunk/LayoutTests/fast/text/font-selection-font-face-parse.html</a></li>
<li><a href="#trunkLayoutTestsfasttextfontselectionfontloadingapiparseexpectedtxt">trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextfontselectionfontloadingapiparsehtml">trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse.html</a></li>
<li><a href="#trunkLayoutTestsfasttextfontstretchparseexpectedtxt">trunk/LayoutTests/fast/text/font-stretch-parse-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextfontstretchparsehtml">trunk/LayoutTests/fast/text/font-stretch-parse.html</a></li>
<li><a href="#trunkLayoutTestsfasttextfontstyleparseexpectedtxt">trunk/LayoutTests/fast/text/font-style-parse-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextfontstyleparsehtml">trunk/LayoutTests/fast/text/font-style-parse.html</a></li>
<li><a href="#trunkLayoutTestsfasttextvariationsfontselectionpropertieshtml">trunk/LayoutTests/fast/text/variations/font-selection-properties.html</a></li>
<li><a href="#trunkLayoutTestsplatformmacelcapitanfasttextfontselectionfontfaceparseexpectedtxt">trunk/LayoutTests/platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationh">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h</a></li>
<li><a href="#trunkSourceWebCorecssFontFacecpp">trunk/Source/WebCore/css/FontFace.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleBuilderConverterh">trunk/Source/WebCore/css/StyleBuilderConverter.h</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSPropertyParsercpp">trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/ChangeLog        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -1,5 +1,23 @@
</span><span class="cx"> 2017-03-27  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        font variation properties don't need to accept numbers
+        https://bugs.webkit.org/show_bug.cgi?id=169357
+
+        Reviewed by Antti Koivisto.
+
+        * fast/text/font-selection-font-face-parse-expected.txt:
+        * fast/text/font-selection-font-face-parse.html:
+        * fast/text/font-selection-font-loading-api-parse-expected.txt:
+        * fast/text/font-selection-font-loading-api-parse.html:
+        * fast/text/font-stretch-parse-expected.txt:
+        * fast/text/font-stretch-parse.html:
+        * fast/text/font-style-parse-expected.txt:
+        * fast/text/font-style-parse.html:
+        * fast/text/variations/font-selection-properties.html:
+        * platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt:
+
+2017-03-27  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
</ins><span class="cx">         Implement format specifier for variation fonts
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=169327
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontselectionfontfaceparseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-selection-font-face-parse-expected.txt (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-selection-font-face-parse-expected.txt        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-selection-font-face-parse-expected.txt        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -16,8 +16,8 @@
</span><span class="cx"> PASS weightTestSheet.cssRules[15].style.fontWeight is &quot;7&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[16].style.fontWeight is &quot;300&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[17].style.fontWeight is &quot;200&quot;
</span><del>-PASS weightTestSheet.cssRules[18].style.fontWeight is &quot;100 / 200&quot;
-PASS weightTestSheet.cssRules[19].style.fontWeight is &quot;100 / 200&quot;
</del><ins>+PASS weightTestSheet.cssRules[18].style.fontWeight is &quot;100 200&quot;
+PASS weightTestSheet.cssRules[19].style.fontWeight is &quot;100 200&quot;
</ins><span class="cx"> PASS weightTestSheet.cssRules[20].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[21].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[22].style.fontWeight is &quot;&quot;
</span><span class="lines">@@ -24,13 +24,13 @@
</span><span class="cx"> PASS weightTestSheet.cssRules[23].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[24].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[25].style.fontWeight is &quot;&quot;
</span><del>-PASS weightTestSheet.cssRules[26].style.fontWeight is &quot;1 / 2&quot;
-PASS weightTestSheet.cssRules[27].style.fontWeight is &quot;-2 / -1&quot;
</del><ins>+PASS weightTestSheet.cssRules[26].style.fontWeight is &quot;1 2&quot;
+PASS weightTestSheet.cssRules[27].style.fontWeight is &quot;-2 -1&quot;
</ins><span class="cx"> PASS weightTestSheet.cssRules[28].style.fontWeight is &quot;&quot;
</span><del>-PASS weightTestSheet.cssRules[29].style.fontWeight is &quot;7 / 8&quot;
-PASS weightTestSheet.cssRules[30].style.fontWeight is &quot;2 / 7&quot;
</del><ins>+PASS weightTestSheet.cssRules[29].style.fontWeight is &quot;7 8&quot;
+PASS weightTestSheet.cssRules[30].style.fontWeight is &quot;2 7&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[0].style.fontStretch is &quot;1%&quot;
</span><del>-PASS stretchTestSheet.cssRules[1].style.fontStretch is &quot;2&quot;
</del><ins>+PASS stretchTestSheet.cssRules[1].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[2].style.fontStretch is &quot;ultra-condensed&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[3].style.fontStretch is &quot;extra-condensed&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[4].style.fontStretch is &quot;condensed&quot;
</span><span class="lines">@@ -42,9 +42,9 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[10].style.fontStretch is &quot;ultra-expanded&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[11].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[12].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[13].style.fontStretch is &quot;7&quot;
-PASS stretchTestSheet.cssRules[14].style.fontStretch is &quot;100 / 200&quot;
-PASS stretchTestSheet.cssRules[15].style.fontStretch is &quot;100 / 200&quot;
</del><ins>+PASS stretchTestSheet.cssRules[13].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[14].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[15].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[16].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[17].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[18].style.fontStretch is &quot;&quot;
</span><span class="lines">@@ -51,11 +51,11 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[19].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[20].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[21].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[22].style.fontStretch is &quot;1 / 2&quot;
-PASS stretchTestSheet.cssRules[23].style.fontStretch is &quot;-2 / -1&quot;
</del><ins>+PASS stretchTestSheet.cssRules[22].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[23].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[24].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[25].style.fontStretch is &quot;100% / 200%&quot;
-PASS stretchTestSheet.cssRules[26].style.fontStretch is &quot;100% / 200%&quot;
</del><ins>+PASS stretchTestSheet.cssRules[25].style.fontStretch is &quot;100% 200%&quot;
+PASS stretchTestSheet.cssRules[26].style.fontStretch is &quot;100% 200%&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[27].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[28].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[29].style.fontStretch is &quot;&quot;
</span><span class="lines">@@ -62,28 +62,30 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[30].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[31].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[32].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[33].style.fontStretch is &quot;1% / 2%&quot;
-PASS stretchTestSheet.cssRules[34].style.fontStretch is &quot;-2% / -1%&quot;
</del><ins>+PASS stretchTestSheet.cssRules[33].style.fontStretch is &quot;1% 2%&quot;
+PASS stretchTestSheet.cssRules[34].style.fontStretch is &quot;-2% -1%&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[35].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[36].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[37].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[38].style.fontStretch is &quot;7 / 8&quot;
-PASS stretchTestSheet.cssRules[39].style.fontStretch is &quot;2 / 7&quot;
</del><ins>+PASS stretchTestSheet.cssRules[38].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[39].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[40].style.fontStretch is &quot;calc(7%) 8%&quot;
+PASS stretchTestSheet.cssRules[41].style.fontStretch is &quot;2% calc(7%)&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[0].style.fontStyle is &quot;oblique 1deg&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[1].style.fontStyle is &quot;oblique 200grad&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[2].style.fontStyle is &quot;oblique 6.28318rad&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[3].style.fontStyle is &quot;oblique 4turn&quot;
</span><del>-PASS styleTestSheet.cssRules[4].style.fontStyle is &quot;oblique 5&quot;
-PASS styleTestSheet.cssRules[5].style.fontStyle is &quot;oblique 20&quot;
</del><ins>+PASS styleTestSheet.cssRules[4].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[5].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[6].style.fontStyle is &quot;italic&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[7].style.fontStyle is &quot;oblique&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[8].style.fontStyle is &quot;normal&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[9].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[10].style.fontStyle is &quot;&quot;
</span><del>-PASS styleTestSheet.cssRules[11].style.fontStyle is &quot;oblique 7&quot;
</del><ins>+PASS styleTestSheet.cssRules[11].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[12].style.fontStyle is &quot;oblique calc(1441deg)&quot;
</span><del>-PASS styleTestSheet.cssRules[13].style.fontStyle is &quot;oblique 100deg 200deg&quot;
-PASS styleTestSheet.cssRules[14].style.fontStyle is &quot;oblique 100deg 200deg&quot;
</del><ins>+PASS styleTestSheet.cssRules[13].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[14].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[15].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[16].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[17].style.fontStyle is &quot;&quot;
</span><span class="lines">@@ -90,8 +92,8 @@
</span><span class="cx"> PASS styleTestSheet.cssRules[18].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[19].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[20].style.fontStyle is &quot;&quot;
</span><del>-PASS styleTestSheet.cssRules[21].style.fontStyle is &quot;oblique 1deg 2deg&quot;
-PASS styleTestSheet.cssRules[22].style.fontStyle is &quot;oblique -2deg -1deg&quot;
</del><ins>+PASS styleTestSheet.cssRules[21].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[22].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[23].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[24].style.fontStyle is &quot;oblique 100deg 200deg&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[25].style.fontStyle is &quot;oblique 100deg 200deg&quot;
</span><span class="lines">@@ -107,8 +109,10 @@
</span><span class="cx"> PASS styleTestSheet.cssRules[35].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[36].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[37].style.fontStyle is &quot;oblique 2deg 1turn&quot;
</span><del>-PASS styleTestSheet.cssRules[38].style.fontStyle is &quot;oblique 7deg 8deg&quot;
-PASS styleTestSheet.cssRules[39].style.fontStyle is &quot;oblique 2deg 7deg&quot;
</del><ins>+PASS styleTestSheet.cssRules[38].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[39].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[40].style.fontStyle is &quot;oblique calc(7deg) 8deg&quot;
+PASS styleTestSheet.cssRules[41].style.fontStyle is &quot;oblique 2deg calc(7deg)&quot;
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontselectionfontfaceparsehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-selection-font-face-parse.html (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-selection-font-face-parse.html        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-selection-font-face-parse.html        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -57,43 +57,43 @@
</span><span class="cx">     font-weight: calc(150 + 50);
</span><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100/200;
</del><ins>+    font-weight: 100 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 / 200;
</del><ins>+    font-weight: 100  200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: a 100 / 200;
</del><ins>+    font-weight: a 100 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 / 200 a;
</del><ins>+    font-weight: 100 200 a;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 a / 200;
</del><ins>+    font-weight: 100 a 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 a/ 200;
</del><ins>+    font-weight: 100a 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 /a 200;
</del><ins>+    font-weight: 100 a200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 100 / a200;
</del><ins>+    font-weight: 100 a200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 1 / 2;
</del><ins>+    font-weight: 1 2;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: -2 / -1;
</del><ins>+    font-weight: -2 -1;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 2 / 1;
</del><ins>+    font-weight: 2 1;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: calc(3 + 4) / 8;
</del><ins>+    font-weight: calc(3 + 4) 8;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-weight: 2 / calc(3 + 4);
</del><ins>+    font-weight: 2 calc(3 + 4);
</ins><span class="cx"> }
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -141,83 +141,89 @@
</span><span class="cx">     font-stretch: calc(3 + 4);
</span><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100/200;
</del><ins>+    font-stretch: 100 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 / 200;
</del><ins>+    font-stretch: 100  200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: a 100 / 200;
</del><ins>+    font-stretch: a 100 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 / 200 a;
</del><ins>+    font-stretch: 100 200 a;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 a / 200;
</del><ins>+    font-stretch: 100 a 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 a/ 200;
</del><ins>+    font-stretch: 100a 200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 /a 200;
</del><ins>+    font-stretch: 100 a200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100 / a200;
</del><ins>+    font-stretch: 100 a200;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 1 / 2;
</del><ins>+    font-stretch: 1 2;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: -2 / -1;
</del><ins>+    font-stretch: -2 -1;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 2 / 1;
</del><ins>+    font-stretch: 2 1;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100%/200%;
</del><ins>+    font-stretch: 100% 200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% / 200%;
</del><ins>+    font-stretch: 100%   200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: a 100% / 200%;
</del><ins>+    font-stretch: a 100% 200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% / 200% a;
</del><ins>+    font-stretch: 100% 200% a;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% a / 200%;
</del><ins>+    font-stretch: 100% a 200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% a/ 200%;
</del><ins>+    font-stretch: 100%a 200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% /a 200%;
</del><ins>+    font-stretch: 100% a200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 100% / a200%;
</del><ins>+    font-stretch: 100% a200%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 1% / 2%;
</del><ins>+    font-stretch: 1% 2%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: -2% / -1%;
</del><ins>+    font-stretch: -2% -1%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 2% / 1%;
</del><ins>+    font-stretch: 2% 1%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 1 / 2%;
</del><ins>+    font-stretch: 1 2%;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 1% / 2;
</del><ins>+    font-stretch: 1% 2;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: calc(3 + 4) / 8;
</del><ins>+    font-stretch: calc(3 + 4) 8;
</ins><span class="cx"> }
</span><span class="cx"> @font-face {
</span><del>-    font-stretch: 2 / calc(3 + 4);
</del><ins>+    font-stretch: 2 calc(3 + 4);
</ins><span class="cx"> }
</span><ins>+@font-face {
+    font-stretch: calc(3% + 4%) 8%;
+}
+@font-face {
+    font-stretch: 2% calc(3% + 4%);
+}
</ins><span class="cx"> &lt;/style&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;style id=&quot;styleTest&quot;&gt;
</span><span class="lines">@@ -341,6 +347,12 @@
</span><span class="cx"> @font-face {
</span><span class="cx">     font-style: oblique 2 calc(3 + 4);
</span><span class="cx"> }
</span><ins>+@font-face {
+    font-style: oblique calc(3deg + 4deg) 8deg;
+}
+@font-face {
+    font-style: oblique 2deg calc(3deg + 4deg);
+}
</ins><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="lines">@@ -364,8 +376,8 @@
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[15].style.fontWeight&quot;, &quot;7&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[16].style.fontWeight&quot;, &quot;300&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[17].style.fontWeight&quot;, &quot;200&quot;);
</span><del>-shouldBeEqualToString(&quot;weightTestSheet.cssRules[18].style.fontWeight&quot;, &quot;100 / 200&quot;);
-shouldBeEqualToString(&quot;weightTestSheet.cssRules[19].style.fontWeight&quot;, &quot;100 / 200&quot;);
</del><ins>+shouldBeEqualToString(&quot;weightTestSheet.cssRules[18].style.fontWeight&quot;, &quot;100 200&quot;);
+shouldBeEqualToString(&quot;weightTestSheet.cssRules[19].style.fontWeight&quot;, &quot;100 200&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[20].style.fontWeight&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[21].style.fontWeight&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[22].style.fontWeight&quot;, &quot;&quot;);
</span><span class="lines">@@ -372,15 +384,15 @@
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[23].style.fontWeight&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[24].style.fontWeight&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[25].style.fontWeight&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;weightTestSheet.cssRules[26].style.fontWeight&quot;, &quot;1 / 2&quot;);
-shouldBeEqualToString(&quot;weightTestSheet.cssRules[27].style.fontWeight&quot;, &quot;-2 / -1&quot;);
</del><ins>+shouldBeEqualToString(&quot;weightTestSheet.cssRules[26].style.fontWeight&quot;, &quot;1 2&quot;);
+shouldBeEqualToString(&quot;weightTestSheet.cssRules[27].style.fontWeight&quot;, &quot;-2 -1&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;weightTestSheet.cssRules[28].style.fontWeight&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;weightTestSheet.cssRules[29].style.fontWeight&quot;, &quot;7 / 8&quot;);
-shouldBeEqualToString(&quot;weightTestSheet.cssRules[30].style.fontWeight&quot;, &quot;2 / 7&quot;);
</del><ins>+shouldBeEqualToString(&quot;weightTestSheet.cssRules[29].style.fontWeight&quot;, &quot;7 8&quot;);
+shouldBeEqualToString(&quot;weightTestSheet.cssRules[30].style.fontWeight&quot;, &quot;2 7&quot;);
</ins><span class="cx"> 
</span><span class="cx"> var stretchTestSheet = document.getElementById(&quot;stretchTest&quot;).sheet;
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[0].style.fontStretch&quot;, &quot;1%&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[1].style.fontStretch&quot;, &quot;2&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[1].style.fontStretch&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[2].style.fontStretch&quot;, &quot;ultra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[3].style.fontStretch&quot;, &quot;extra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[4].style.fontStretch&quot;, &quot;condensed&quot;);
</span><span class="lines">@@ -392,9 +404,9 @@
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[10].style.fontStretch&quot;, &quot;ultra-expanded&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[11].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[12].style.fontStretch&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[13].style.fontStretch&quot;, &quot;7&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[14].style.fontStretch&quot;, &quot;100 / 200&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[15].style.fontStretch&quot;, &quot;100 / 200&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[13].style.fontStretch&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[14].style.fontStretch&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[15].style.fontStretch&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[16].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[17].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[18].style.fontStretch&quot;, &quot;&quot;);
</span><span class="lines">@@ -401,11 +413,11 @@
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[19].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[20].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[21].style.fontStretch&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[22].style.fontStretch&quot;, &quot;1 / 2&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[23].style.fontStretch&quot;, &quot;-2 / -1&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[22].style.fontStretch&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[23].style.fontStretch&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[24].style.fontStretch&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[25].style.fontStretch&quot;, &quot;100% / 200%&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[26].style.fontStretch&quot;, &quot;100% / 200%&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[25].style.fontStretch&quot;, &quot;100% 200%&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[26].style.fontStretch&quot;, &quot;100% 200%&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[27].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[28].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[29].style.fontStretch&quot;, &quot;&quot;);
</span><span class="lines">@@ -412,13 +424,15 @@
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[30].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[31].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[32].style.fontStretch&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[33].style.fontStretch&quot;, &quot;1% / 2%&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[34].style.fontStretch&quot;, &quot;-2% / -1%&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[33].style.fontStretch&quot;, &quot;1% 2%&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[34].style.fontStretch&quot;, &quot;-2% -1%&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[35].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[36].style.fontStretch&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;stretchTestSheet.cssRules[37].style.fontStretch&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[38].style.fontStretch&quot;, &quot;7 / 8&quot;);
-shouldBeEqualToString(&quot;stretchTestSheet.cssRules[39].style.fontStretch&quot;, &quot;2 / 7&quot;);
</del><ins>+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[38].style.fontStretch&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[39].style.fontStretch&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[40].style.fontStretch&quot;, &quot;calc(7%) 8%&quot;);
+shouldBeEqualToString(&quot;stretchTestSheet.cssRules[41].style.fontStretch&quot;, &quot;2% calc(7%)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> var styleTestSheet = document.getElementById(&quot;styleTest&quot;).sheet;
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[0].style.fontStyle&quot;, &quot;oblique 1deg&quot;);
</span><span class="lines">@@ -425,18 +439,18 @@
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[1].style.fontStyle&quot;, &quot;oblique 200grad&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[2].style.fontStyle&quot;, &quot;oblique 6.28318rad&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[3].style.fontStyle&quot;, &quot;oblique 4turn&quot;);
</span><del>-shouldBeEqualToString(&quot;styleTestSheet.cssRules[4].style.fontStyle&quot;, &quot;oblique 5&quot;);
-shouldBeEqualToString(&quot;styleTestSheet.cssRules[5].style.fontStyle&quot;, &quot;oblique 20&quot;);
</del><ins>+shouldBeEqualToString(&quot;styleTestSheet.cssRules[4].style.fontStyle&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[5].style.fontStyle&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[6].style.fontStyle&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[7].style.fontStyle&quot;, &quot;oblique&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[8].style.fontStyle&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[9].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[10].style.fontStyle&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;styleTestSheet.cssRules[11].style.fontStyle&quot;, &quot;oblique 7&quot;);
</del><ins>+shouldBeEqualToString(&quot;styleTestSheet.cssRules[11].style.fontStyle&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[12].style.fontStyle&quot;, &quot;oblique calc(1441deg)&quot;);
</span><span class="cx"> 
</span><del>-shouldBeEqualToString(&quot;styleTestSheet.cssRules[13].style.fontStyle&quot;, &quot;oblique 100deg 200deg&quot;);
-shouldBeEqualToString(&quot;styleTestSheet.cssRules[14].style.fontStyle&quot;, &quot;oblique 100deg 200deg&quot;);
</del><ins>+shouldBeEqualToString(&quot;styleTestSheet.cssRules[13].style.fontStyle&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[14].style.fontStyle&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[15].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[16].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[17].style.fontStyle&quot;, &quot;&quot;);
</span><span class="lines">@@ -443,8 +457,8 @@
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[18].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[19].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[20].style.fontStyle&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;styleTestSheet.cssRules[21].style.fontStyle&quot;, &quot;oblique 1deg 2deg&quot;);
-shouldBeEqualToString(&quot;styleTestSheet.cssRules[22].style.fontStyle&quot;, &quot;oblique -2deg -1deg&quot;);
</del><ins>+shouldBeEqualToString(&quot;styleTestSheet.cssRules[21].style.fontStyle&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[22].style.fontStyle&quot;, &quot;&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[23].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[24].style.fontStyle&quot;, &quot;oblique 100deg 200deg&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[25].style.fontStyle&quot;, &quot;oblique 100deg 200deg&quot;);
</span><span class="lines">@@ -460,8 +474,10 @@
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[35].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[36].style.fontStyle&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;styleTestSheet.cssRules[37].style.fontStyle&quot;, &quot;oblique 2deg 1turn&quot;);
</span><del>-shouldBeEqualToString(&quot;styleTestSheet.cssRules[38].style.fontStyle&quot;, &quot;oblique 7deg 8deg&quot;);
-shouldBeEqualToString(&quot;styleTestSheet.cssRules[39].style.fontStyle&quot;, &quot;oblique 2deg 7deg&quot;);
</del><ins>+shouldBeEqualToString(&quot;styleTestSheet.cssRules[38].style.fontStyle&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[39].style.fontStyle&quot;, &quot;&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[40].style.fontStyle&quot;, &quot;oblique calc(7deg) 8deg&quot;);
+shouldBeEqualToString(&quot;styleTestSheet.cssRules[41].style.fontStyle&quot;, &quot;oblique 2deg calc(7deg)&quot;);
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontselectionfontloadingapiparseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse-expected.txt (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse-expected.txt        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse-expected.txt        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx"> PASS setFontFaceWeight(fontFace, 'calc(100 + 200)') is &quot;300&quot;
</span><span class="cx"> PASS setFontFaceWeight(fontFace, 'calc(150 + 50)') is &quot;200&quot;
</span><span class="cx"> PASS setFontFaceStretch(fontFace, '1%') is &quot;1%&quot;
</span><del>-PASS setFontFaceStretch(fontFace, '2') is &quot;2%&quot;
</del><ins>+PASS setFontFaceStretch(fontFace, '2') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</ins><span class="cx"> PASS setFontFaceStretch(fontFace, 'ultra-condensed') is &quot;ultra-condensed&quot;
</span><span class="cx"> PASS setFontFaceStretch(fontFace, 'extra-condensed') is &quot;extra-condensed&quot;
</span><span class="cx"> PASS setFontFaceStretch(fontFace, 'condensed') is &quot;condensed&quot;
</span><span class="lines">@@ -28,19 +28,20 @@
</span><span class="cx"> PASS setFontFaceStretch(fontFace, 'ultra-expanded') is &quot;ultra-expanded&quot;
</span><span class="cx"> PASS setFontFaceStretch(fontFace, 'garbage') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</span><span class="cx"> PASS setFontFaceStretch(fontFace, 'initial') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</span><del>-PASS setFontFaceStretch(fontFace, 'calc(3 + 4)') is &quot;7%&quot;
</del><ins>+PASS setFontFaceStretch(fontFace, 'calc(3 + 4)') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
+PASS setFontFaceStretch(fontFace, 'calc(3% + 4%)') is &quot;7%&quot;
</ins><span class="cx"> PASS setFontFaceStyle(fontFace, 'oblique 1deg') is &quot;oblique 1deg&quot;
</span><span class="cx"> PASS setFontFaceStyle(fontFace, 'oblique 200grad') is &quot;oblique 180deg&quot;
</span><del>-PASS setFontFaceStyle(fontFace, 'oblique 6.28318rad') is &quot;oblique 359.750000deg&quot;
</del><ins>+PASS setFontFaceStyle(fontFace, 'oblique 6.28318rad') is &quot;oblique 359.75deg&quot;
</ins><span class="cx"> PASS setFontFaceStyle(fontFace, 'oblique 4turn') is &quot;oblique 1440deg&quot;
</span><del>-PASS setFontFaceStyle(fontFace, 'oblique 5') is &quot;oblique 5deg&quot;
-PASS setFontFaceStyle(fontFace, 'oblique 20') is &quot;italic&quot;
</del><ins>+PASS setFontFaceStyle(fontFace, 'oblique 5') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
+PASS setFontFaceStyle(fontFace, 'oblique 20') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</ins><span class="cx"> PASS setFontFaceStyle(fontFace, 'italic') is &quot;italic&quot;
</span><span class="cx"> PASS setFontFaceStyle(fontFace, 'oblique') is &quot;italic&quot;
</span><span class="cx"> PASS setFontFaceStyle(fontFace, 'normal') is &quot;normal&quot;
</span><span class="cx"> PASS setFontFaceStyle(fontFace, 'garbage') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</span><span class="cx"> PASS setFontFaceStyle(fontFace, 'initial') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</span><del>-PASS setFontFaceStyle(fontFace, 'oblique calc(3 + 4)') is &quot;oblique 7deg&quot;
</del><ins>+PASS setFontFaceStyle(fontFace, 'oblique calc(3 + 4)') threw exception SyntaxError (DOM Exception 12): The string did not match the expected pattern..
</ins><span class="cx"> PASS setFontFaceStyle(fontFace, 'oblique calc(4turn + 1deg)') is &quot;oblique 1441deg&quot;
</span><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontselectionfontloadingapiparsehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse.html (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse.html        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-selection-font-loading-api-parse.html        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceWeight(fontFace, 'calc(150 + 50)')&quot;, &quot;200&quot;);
</span><span class="cx"> 
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, '1%')&quot;, &quot;1%&quot;);
</span><del>-shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, '2')&quot;, &quot;2%&quot;);
</del><ins>+shouldThrow(&quot;setFontFaceStretch(fontFace, '2')&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'ultra-condensed')&quot;, &quot;ultra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'extra-condensed')&quot;, &quot;extra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'condensed')&quot;, &quot;condensed&quot;);
</span><span class="lines">@@ -52,20 +52,21 @@
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'ultra-expanded')&quot;, &quot;ultra-expanded&quot;);
</span><span class="cx"> shouldThrow(&quot;setFontFaceStretch(fontFace, 'garbage')&quot;);
</span><span class="cx"> shouldThrow(&quot;setFontFaceStretch(fontFace, 'initial')&quot;);
</span><del>-shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'calc(3 + 4)')&quot;, &quot;7%&quot;);
</del><ins>+shouldThrow(&quot;setFontFaceStretch(fontFace, 'calc(3 + 4)')&quot;);
+shouldBeEqualToString(&quot;setFontFaceStretch(fontFace, 'calc(3% + 4%)')&quot;, &quot;7%&quot;);
</ins><span class="cx"> 
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 1deg')&quot;, &quot;oblique 1deg&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 200grad')&quot;, &quot;oblique 180deg&quot;);
</span><del>-shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 6.28318rad')&quot;, &quot;oblique 359.750000deg&quot;);
</del><ins>+shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 6.28318rad')&quot;, &quot;oblique 359.75deg&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 4turn')&quot;, &quot;oblique 1440deg&quot;);
</span><del>-shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 5')&quot;, &quot;oblique 5deg&quot;);
-shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique 20')&quot;, &quot;italic&quot;);
</del><ins>+shouldThrow(&quot;setFontFaceStyle(fontFace, 'oblique 5')&quot;);
+shouldThrow(&quot;setFontFaceStyle(fontFace, 'oblique 20')&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'italic')&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique')&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'normal')&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldThrow(&quot;setFontFaceStyle(fontFace, 'garbage')&quot;);
</span><span class="cx"> shouldThrow(&quot;setFontFaceStyle(fontFace, 'initial')&quot;);
</span><del>-shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique calc(3 + 4)')&quot;, &quot;oblique 7deg&quot;);
</del><ins>+shouldThrow(&quot;setFontFaceStyle(fontFace, 'oblique calc(3 + 4)')&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;setFontFaceStyle(fontFace, 'oblique calc(4turn + 1deg)')&quot;, &quot;oblique 1441deg&quot;);
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontstretchparseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-stretch-parse-expected.txt (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-stretch-parse-expected.txt        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-stretch-parse-expected.txt        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test1')).fontStretch is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test2')).fontStretch is &quot;1%&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test3')).fontStretch is &quot;2%&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test3')).fontStretch is &quot;normal&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test4')).fontStretch is &quot;ultra-condensed&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test5')).fontStretch is &quot;extra-condensed&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test6')).fontStretch is &quot;condensed&quot;
</span><span class="lines">@@ -12,15 +12,16 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test12')).fontStretch is &quot;ultra-expanded&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test13')).fontStretch is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test14')).fontStretch is &quot;normal&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test15')).fontStretch is &quot;7%&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test15')).fontStretch is &quot;normal&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test16')).fontStretch is &quot;extra-condensed&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test17')).fontStretch is &quot;extra-condensed&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test18')).fontStretch is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test19')).fontStretch is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test20')).fontStretch is &quot;extra-expanded&quot;
</span><ins>+PASS window.getComputedStyle(document.getElementById('test21')).fontStretch is &quot;7%&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test1')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test2')).font is &quot;16px/18px Times&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test3')).font is &quot;16px/18px Times&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test3')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test4')).font is &quot;normal normal normal ultra-condensed 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test5')).font is &quot;normal normal normal extra-condensed 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test6')).font is &quot;normal normal normal condensed 16px/18px Times&quot;
</span><span class="lines">@@ -32,12 +33,13 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test12')).font is &quot;normal normal normal ultra-expanded 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test13')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test14')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test15')).font is &quot;16px/18px Times&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test15')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test16')).font is &quot;normal normal 100 extra-condensed 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test17')).font is &quot;normal normal 100 extra-condensed 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test18')).font is &quot;normal normal 100 normal 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test19')).font is &quot;normal normal 100 normal 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test20')).font is &quot;italic small-caps 100 extra-expanded 48px/49px 'Helvetica Neue'&quot;
</span><ins>+PASS window.getComputedStyle(document.getElementById('test21')).font is &quot;16px/18px Times&quot;
</ins><span class="cx"> PASS document.getElementById('test1').style.font is &quot;&quot;
</span><span class="cx"> PASS document.getElementById('test16').style.font is &quot;100 extra-condensed 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS document.getElementById('test17').style.font is &quot;100 extra-condensed 48px/49px 'Helvetica Neue'&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontstretchparsehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-stretch-parse.html (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-stretch-parse.html        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-stretch-parse.html        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -25,11 +25,12 @@
</span><span class="cx"> &lt;div id=&quot;test18&quot; style=&quot;font: 100 48px/49px 'Helvetica Neue';&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;font-stretch: extra-expanded;&quot;&gt;&lt;div id=&quot;test19&quot; style=&quot;font: 100 48px/49px 'Helvetica Neue';&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div id=&quot;test20&quot; style=&quot;font: italic small-caps 100 extra-expanded 48px/49px 'Helvetica Neue';&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div id=&quot;test21&quot; style=&quot;font-stretch: calc(3% + 4%);&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test1')).fontStretch&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test2')).fontStretch&quot;, &quot;1%&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).fontStretch&quot;, &quot;2%&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).fontStretch&quot;, &quot;normal&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test4')).fontStretch&quot;, &quot;ultra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test5')).fontStretch&quot;, &quot;extra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).fontStretch&quot;, &quot;condensed&quot;);
</span><span class="lines">@@ -41,16 +42,17 @@
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test12')).fontStretch&quot;, &quot;ultra-expanded&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).fontStretch&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test14')).fontStretch&quot;, &quot;normal&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).fontStretch&quot;, &quot;7%&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).fontStretch&quot;, &quot;normal&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test16')).fontStretch&quot;, &quot;extra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test17')).fontStretch&quot;, &quot;extra-condensed&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test18')).fontStretch&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test19')).fontStretch&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test20')).fontStretch&quot;, &quot;extra-expanded&quot;);
</span><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test21')).fontStretch&quot;, &quot;7%&quot;);
</ins><span class="cx"> 
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test1')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test2')).font&quot;, &quot;16px/18px Times&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).font&quot;, &quot;16px/18px Times&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test4')).font&quot;, &quot;normal normal normal ultra-condensed 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test5')).font&quot;, &quot;normal normal normal extra-condensed 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).font&quot;, &quot;normal normal normal condensed 16px/18px Times&quot;);
</span><span class="lines">@@ -62,12 +64,13 @@
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test12')).font&quot;, &quot;normal normal normal ultra-expanded 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test14')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).font&quot;, &quot;16px/18px Times&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test16')).font&quot;, &quot;normal normal 100 extra-condensed 48px/49px 'Helvetica Neue'&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test17')).font&quot;, &quot;normal normal 100 extra-condensed 48px/49px 'Helvetica Neue'&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test18')).font&quot;, &quot;normal normal 100 normal 48px/49px 'Helvetica Neue'&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test19')).font&quot;, &quot;normal normal 100 normal 48px/49px 'Helvetica Neue'&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test20')).font&quot;, &quot;italic small-caps 100 extra-expanded 48px/49px 'Helvetica Neue'&quot;);
</span><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test21')).font&quot;, &quot;16px/18px Times&quot;);
</ins><span class="cx"> 
</span><span class="cx"> shouldBeEqualToString(&quot;document.getElementById('test1').style.font&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;document.getElementById('test16').style.font&quot;, &quot;100 extra-condensed 48px/49px 'Helvetica Neue'&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontstyleparseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-style-parse-expected.txt (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-style-parse-expected.txt        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-style-parse-expected.txt        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -3,14 +3,14 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test3')).fontStyle is &quot;oblique 180deg&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test4')).fontStyle is &quot;oblique 359.75deg&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test5')).fontStyle is &quot;oblique 1440deg&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test6')).fontStyle is &quot;oblique 5deg&quot;
-PASS window.getComputedStyle(document.getElementById('test7')).fontStyle is &quot;italic&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test6')).fontStyle is &quot;normal&quot;
+PASS window.getComputedStyle(document.getElementById('test7')).fontStyle is &quot;normal&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test8')).fontStyle is &quot;italic&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test9')).fontStyle is &quot;italic&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test10')).fontStyle is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test11')).fontStyle is &quot;normal&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test12')).fontStyle is &quot;normal&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test13')).fontStyle is &quot;oblique 7deg&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test13')).fontStyle is &quot;normal&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test14')).fontStyle is &quot;oblique 1441deg&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test15')).fontStyle is &quot;italic&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test16')).fontStyle is &quot;italic&quot;
</span><span class="lines">@@ -24,14 +24,14 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test3')).font is &quot;16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test4')).font is &quot;16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test5')).font is &quot;16px/18px Times&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test6')).font is &quot;16px/18px Times&quot;
-PASS window.getComputedStyle(document.getElementById('test7')).font is &quot;italic normal normal normal 16px/18px Times&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test6')).font is &quot;normal normal normal normal 16px/18px Times&quot;
+PASS window.getComputedStyle(document.getElementById('test7')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test8')).font is &quot;italic normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test9')).font is &quot;italic normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test10')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test11')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test12')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById('test13')).font is &quot;16px/18px Times&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById('test13')).font is &quot;normal normal normal normal 16px/18px Times&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById('test14')).font is &quot;16px/18px Times&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test15')).font is &quot;italic normal 100 normal 48px/49px 'Helvetica Neue'&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById('test16')).font is &quot;italic normal 100 normal 48px/49px 'Helvetica Neue'&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextfontstyleparsehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/font-style-parse.html (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/font-style-parse.html        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/font-style-parse.html        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -33,14 +33,14 @@
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).fontStyle&quot;, &quot;oblique 180deg&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test4')).fontStyle&quot;, &quot;oblique 359.75deg&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test5')).fontStyle&quot;, &quot;oblique 1440deg&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).fontStyle&quot;, &quot;oblique 5deg&quot;);
-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test7')).fontStyle&quot;, &quot;italic&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).fontStyle&quot;, &quot;normal&quot;);
+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test7')).fontStyle&quot;, &quot;normal&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test8')).fontStyle&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test9')).fontStyle&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test10')).fontStyle&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test11')).fontStyle&quot;, &quot;normal&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test12')).fontStyle&quot;, &quot;normal&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).fontStyle&quot;, &quot;oblique 7deg&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).fontStyle&quot;, &quot;normal&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test14')).fontStyle&quot;, &quot;oblique 1441deg&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).fontStyle&quot;, &quot;italic&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test16')).fontStyle&quot;, &quot;italic&quot;);
</span><span class="lines">@@ -55,14 +55,14 @@
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test3')).font&quot;, &quot;16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test4')).font&quot;, &quot;16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test5')).font&quot;, &quot;16px/18px Times&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).font&quot;, &quot;16px/18px Times&quot;);
-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test7')).font&quot;, &quot;italic normal normal normal 16px/18px Times&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test6')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test7')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test8')).font&quot;, &quot;italic normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test9')).font&quot;, &quot;italic normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test10')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test11')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test12')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</span><del>-shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).font&quot;, &quot;16px/18px Times&quot;);
</del><ins>+shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test13')).font&quot;, &quot;normal normal normal normal 16px/18px Times&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test14')).font&quot;, &quot;16px/18px Times&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test15')).font&quot;, &quot;italic normal 100 normal 48px/49px 'Helvetica Neue'&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;window.getComputedStyle(document.getElementById('test16')).font&quot;, &quot;italic normal 100 normal 48px/49px 'Helvetica Neue'&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextvariationsfontselectionpropertieshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/variations/font-selection-properties.html (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/variations/font-selection-properties.html        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/fast/text/variations/font-selection-properties.html        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> This test makes sure that the font selection properties affect font variations.
</span><del>-&lt;div style=&quot;font-family: Boxis; font-stretch: 900;&quot;&gt;Hello&lt;/div&gt;
-&lt;div style=&quot;font-family: Boxis; font-stretch: 900; font-variation-settings: 'wdth' 100;&quot;&gt;Hello&lt;/div&gt;
</del><ins>+&lt;div style=&quot;font-family: Boxis; font-stretch: 900%;&quot;&gt;Hello&lt;/div&gt;
+&lt;div style=&quot;font-family: Boxis; font-stretch: 900%; font-variation-settings: 'wdth' 100;&quot;&gt;Hello&lt;/div&gt;
</ins><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacelcapitanfasttextfontselectionfontfaceparseexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/LayoutTests/platform/mac-elcapitan/fast/text/font-selection-font-face-parse-expected.txt        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -16,8 +16,8 @@
</span><span class="cx"> PASS weightTestSheet.cssRules[15].style.fontWeight is &quot;7&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[16].style.fontWeight is &quot;300&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[17].style.fontWeight is &quot;200&quot;
</span><del>-FAIL weightTestSheet.cssRules[18].style.fontWeight should be 100 / 200. Was .
-FAIL weightTestSheet.cssRules[19].style.fontWeight should be 100 / 200. Was .
</del><ins>+FAIL weightTestSheet.cssRules[18].style.fontWeight should be 100 200. Was .
+FAIL weightTestSheet.cssRules[19].style.fontWeight should be 100 200. Was .
</ins><span class="cx"> PASS weightTestSheet.cssRules[20].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[21].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[22].style.fontWeight is &quot;&quot;
</span><span class="lines">@@ -24,13 +24,13 @@
</span><span class="cx"> PASS weightTestSheet.cssRules[23].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[24].style.fontWeight is &quot;&quot;
</span><span class="cx"> PASS weightTestSheet.cssRules[25].style.fontWeight is &quot;&quot;
</span><del>-FAIL weightTestSheet.cssRules[26].style.fontWeight should be 1 / 2. Was .
-FAIL weightTestSheet.cssRules[27].style.fontWeight should be -2 / -1. Was .
</del><ins>+FAIL weightTestSheet.cssRules[26].style.fontWeight should be 1 2. Was .
+FAIL weightTestSheet.cssRules[27].style.fontWeight should be -2 -1. Was .
</ins><span class="cx"> PASS weightTestSheet.cssRules[28].style.fontWeight is &quot;&quot;
</span><del>-FAIL weightTestSheet.cssRules[29].style.fontWeight should be 7 / 8. Was .
-FAIL weightTestSheet.cssRules[30].style.fontWeight should be 2 / 7. Was .
</del><ins>+FAIL weightTestSheet.cssRules[29].style.fontWeight should be 7 8. Was .
+FAIL weightTestSheet.cssRules[30].style.fontWeight should be 2 7. Was .
</ins><span class="cx"> PASS stretchTestSheet.cssRules[0].style.fontStretch is &quot;1%&quot;
</span><del>-PASS stretchTestSheet.cssRules[1].style.fontStretch is &quot;2&quot;
</del><ins>+PASS stretchTestSheet.cssRules[1].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[2].style.fontStretch is &quot;ultra-condensed&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[3].style.fontStretch is &quot;extra-condensed&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[4].style.fontStretch is &quot;condensed&quot;
</span><span class="lines">@@ -42,9 +42,9 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[10].style.fontStretch is &quot;ultra-expanded&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[11].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[12].style.fontStretch is &quot;&quot;
</span><del>-PASS stretchTestSheet.cssRules[13].style.fontStretch is &quot;7&quot;
-FAIL stretchTestSheet.cssRules[14].style.fontStretch should be 100 / 200. Was .
-FAIL stretchTestSheet.cssRules[15].style.fontStretch should be 100 / 200. Was .
</del><ins>+PASS stretchTestSheet.cssRules[13].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[14].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[15].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[16].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[17].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[18].style.fontStretch is &quot;&quot;
</span><span class="lines">@@ -51,11 +51,11 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[19].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[20].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[21].style.fontStretch is &quot;&quot;
</span><del>-FAIL stretchTestSheet.cssRules[22].style.fontStretch should be 1 / 2. Was .
-FAIL stretchTestSheet.cssRules[23].style.fontStretch should be -2 / -1. Was .
</del><ins>+PASS stretchTestSheet.cssRules[22].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[23].style.fontStretch is &quot;&quot;
</ins><span class="cx"> PASS stretchTestSheet.cssRules[24].style.fontStretch is &quot;&quot;
</span><del>-FAIL stretchTestSheet.cssRules[25].style.fontStretch should be 100% / 200%. Was .
-FAIL stretchTestSheet.cssRules[26].style.fontStretch should be 100% / 200%. Was .
</del><ins>+FAIL stretchTestSheet.cssRules[25].style.fontStretch should be 100% 200%. Was .
+FAIL stretchTestSheet.cssRules[26].style.fontStretch should be 100% 200%. Was .
</ins><span class="cx"> PASS stretchTestSheet.cssRules[27].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[28].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[29].style.fontStretch is &quot;&quot;
</span><span class="lines">@@ -62,28 +62,30 @@
</span><span class="cx"> PASS stretchTestSheet.cssRules[30].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[31].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[32].style.fontStretch is &quot;&quot;
</span><del>-FAIL stretchTestSheet.cssRules[33].style.fontStretch should be 1% / 2%. Was .
-FAIL stretchTestSheet.cssRules[34].style.fontStretch should be -2% / -1%. Was .
</del><ins>+FAIL stretchTestSheet.cssRules[33].style.fontStretch should be 1% 2%. Was .
+FAIL stretchTestSheet.cssRules[34].style.fontStretch should be -2% -1%. Was .
</ins><span class="cx"> PASS stretchTestSheet.cssRules[35].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[36].style.fontStretch is &quot;&quot;
</span><span class="cx"> PASS stretchTestSheet.cssRules[37].style.fontStretch is &quot;&quot;
</span><del>-FAIL stretchTestSheet.cssRules[38].style.fontStretch should be 7 / 8. Was .
-FAIL stretchTestSheet.cssRules[39].style.fontStretch should be 2 / 7. Was .
</del><ins>+PASS stretchTestSheet.cssRules[38].style.fontStretch is &quot;&quot;
+PASS stretchTestSheet.cssRules[39].style.fontStretch is &quot;&quot;
+FAIL stretchTestSheet.cssRules[40].style.fontStretch should be calc(7%) 8%. Was .
+FAIL stretchTestSheet.cssRules[41].style.fontStretch should be 2% calc(7%). Was .
</ins><span class="cx"> PASS styleTestSheet.cssRules[0].style.fontStyle is &quot;oblique 1deg&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[1].style.fontStyle is &quot;oblique 200grad&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[2].style.fontStyle is &quot;oblique 6.28318rad&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[3].style.fontStyle is &quot;oblique 4turn&quot;
</span><del>-FAIL styleTestSheet.cssRules[4].style.fontStyle should be oblique 5. Was oblique 5deg.
-FAIL styleTestSheet.cssRules[5].style.fontStyle should be oblique 20. Was oblique 20deg.
</del><ins>+PASS styleTestSheet.cssRules[4].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[5].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[6].style.fontStyle is &quot;italic&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[7].style.fontStyle is &quot;oblique&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[8].style.fontStyle is &quot;normal&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[9].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[10].style.fontStyle is &quot;&quot;
</span><del>-FAIL styleTestSheet.cssRules[11].style.fontStyle should be oblique 7. Was oblique 7deg.
</del><ins>+PASS styleTestSheet.cssRules[11].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[12].style.fontStyle is &quot;oblique calc(1441deg)&quot;
</span><del>-FAIL styleTestSheet.cssRules[13].style.fontStyle should be oblique 100deg 200deg. Was .
-FAIL styleTestSheet.cssRules[14].style.fontStyle should be oblique 100deg 200deg. Was .
</del><ins>+PASS styleTestSheet.cssRules[13].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[14].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[15].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[16].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[17].style.fontStyle is &quot;&quot;
</span><span class="lines">@@ -90,8 +92,8 @@
</span><span class="cx"> PASS styleTestSheet.cssRules[18].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[19].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[20].style.fontStyle is &quot;&quot;
</span><del>-FAIL styleTestSheet.cssRules[21].style.fontStyle should be oblique 1deg 2deg. Was .
-FAIL styleTestSheet.cssRules[22].style.fontStyle should be oblique -2deg -1deg. Was .
</del><ins>+PASS styleTestSheet.cssRules[21].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[22].style.fontStyle is &quot;&quot;
</ins><span class="cx"> PASS styleTestSheet.cssRules[23].style.fontStyle is &quot;&quot;
</span><span class="cx"> FAIL styleTestSheet.cssRules[24].style.fontStyle should be oblique 100deg 200deg. Was .
</span><span class="cx"> FAIL styleTestSheet.cssRules[25].style.fontStyle should be oblique 100deg 200deg. Was .
</span><span class="lines">@@ -107,8 +109,10 @@
</span><span class="cx"> PASS styleTestSheet.cssRules[35].style.fontStyle is &quot;&quot;
</span><span class="cx"> PASS styleTestSheet.cssRules[36].style.fontStyle is &quot;&quot;
</span><span class="cx"> FAIL styleTestSheet.cssRules[37].style.fontStyle should be oblique 2deg 1turn. Was .
</span><del>-FAIL styleTestSheet.cssRules[38].style.fontStyle should be oblique 7deg 8deg. Was .
-FAIL styleTestSheet.cssRules[39].style.fontStyle should be oblique 2deg 7deg. Was .
</del><ins>+PASS styleTestSheet.cssRules[38].style.fontStyle is &quot;&quot;
+PASS styleTestSheet.cssRules[39].style.fontStyle is &quot;&quot;
+FAIL styleTestSheet.cssRules[40].style.fontStyle should be oblique calc(7deg) 8deg. Was .
+FAIL styleTestSheet.cssRules[41].style.fontStyle should be oblique 2deg calc(7deg). Was .
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/ChangeLog        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -1,3 +1,43 @@
</span><ins>+2017-03-27  Myles C. Maxfield  &lt;mmaxfield@apple.com&gt;
+
+        font variation properties don't need to accept numbers
+        https://bugs.webkit.org/show_bug.cgi?id=169357
+
+        Reviewed by Antti Koivisto.
+
+        The CSS Fonts level 4 spec stabilized the grammar accepted by font-weight,
+        font-style, and font-stretch. The changes are that font-style and
+        font-stretch no longer accept raw numbers, and the @font-face descriptor
+        ranges are now separated by spaces instead of slashes.
+
+        Tests: fast/text/font-selection-font-face-parse.html
+               fast/text/font-selection-font-loading-api-parse.html
+               fast/text/font-stretch-parse.html
+               fast/text/font-style-parse.html
+               fast/text/variations/font-selection-properties.html
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::fontWeightFromStyleValue):
+        (WebCore::fontWeightFromStyle):
+        (WebCore::ComputedStyleExtractor::fontStretchFromStyleValue):
+        (WebCore::fontStretchFromStyle):
+        (WebCore::ComputedStyleExtractor::fontStyleFromStyleValue):
+        (WebCore::fontStyleFromStyle):
+        * css/CSSComputedStyleDeclaration.h:
+        * css/FontFace.cpp:
+        (WebCore::FontFace::style):
+        (WebCore::FontFace::weight):
+        (WebCore::FontFace::stretch):
+        (WebCore::rangeIsSingleValue): Deleted.
+        * css/StyleBuilderConverter.h:
+        (WebCore::StyleBuilderConverter::convertFontStretchFromValue):
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::consumeFontWeightRange):
+        (WebCore::consumeFontStretch):
+        (WebCore::consumeFontStretchRange):
+        (WebCore::consumeFontStyle):
+        (WebCore::consumeFontStyleRange):
+
</ins><span class="cx"> 2017-03-27  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Further optimize checkWebRTCAvailability
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -1917,32 +1917,42 @@
</span><span class="cx">     return zoomAdjustedPixelValue(style.fontDescription().computedSize(), style);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; fontWeightFromStyle(const RenderStyle&amp; style)
</del><ins>+Ref&lt;CSSPrimitiveValue&gt; ComputedStyleExtractor::fontWeightFromStyleValue(FontSelectionValue weight)
</ins><span class="cx"> {
</span><del>-    auto weight = style.fontDescription().weight();
</del><span class="cx">     if (auto value = fontWeightKeyword(weight))
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(value.value());
</span><span class="cx">     return CSSValuePool::singleton().createValue(static_cast&lt;float&gt;(weight), CSSPrimitiveValue::CSS_NUMBER);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSPrimitiveValue&gt; fontStretchFromStyle(const RenderStyle&amp; style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; fontWeightFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><del>-    auto stretch = style.fontDescription().stretch();
</del><ins>+    return ComputedStyleExtractor::fontWeightFromStyleValue(style.fontDescription().weight());
+}
+
+Ref&lt;CSSPrimitiveValue&gt; ComputedStyleExtractor::fontStretchFromStyleValue(FontSelectionValue stretch)
+{
</ins><span class="cx">     if (auto keyword = fontStretchKeyword(stretch))
</span><span class="cx">         return CSSValuePool::singleton().createIdentifierValue(keyword.value());
</span><span class="cx">     return CSSValuePool::singleton().createValue(static_cast&lt;float&gt;(stretch), CSSPrimitiveValue::CSS_PERCENTAGE);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static Ref&lt;CSSFontStyleValue&gt; fontStyleFromStyle(const RenderStyle&amp; style)
</del><ins>+static Ref&lt;CSSPrimitiveValue&gt; fontStretchFromStyle(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><del>-    FontSelectionValue italic = style.fontDescription().italic();
-    if (italic == normalItalicValue())
-        return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueNormal));
-    if (italic == italicValue())
-        return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueItalic));
</del><ins>+    return ComputedStyleExtractor::fontStretchFromStyleValue(style.fontDescription().stretch());
+}
+
+Ref&lt;CSSFontStyleValue&gt; ComputedStyleExtractor::fontStyleFromStyleValue(FontSelectionValue italic)
+{
+    if (auto keyword = fontStyleKeyword(italic))
+        return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(keyword.value()));
</ins><span class="cx">     return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueOblique), CSSValuePool::singleton().createValue(static_cast&lt;float&gt;(italic), CSSPrimitiveValue::CSS_DEG));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static Ref&lt;CSSFontStyleValue&gt; fontStyleFromStyle(const RenderStyle&amp; style)
+{
+    return ComputedStyleExtractor::fontStyleFromStyleValue(style.fontDescription().italic());
+}
+
</ins><span class="cx"> static Ref&lt;CSSValue&gt; fontVariantFromStyle(const RenderStyle&amp; style)
</span><span class="cx"> {
</span><span class="cx">     if (style.fontDescription().variantSettings().isAllNormal())
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -28,11 +28,13 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><ins>+class CSSFontStyleValue;
</ins><span class="cx"> class CSSPrimitiveValue;
</span><span class="cx"> class CSSValueList;
</span><span class="cx"> class Color;
</span><span class="cx"> class Element;
</span><span class="cx"> class FilterOperations;
</span><ins>+class FontSelectionValue;
</ins><span class="cx"> class MutableStyleProperties;
</span><span class="cx"> class Node;
</span><span class="cx"> class RenderObject;
</span><span class="lines">@@ -64,6 +66,10 @@
</span><span class="cx"> 
</span><span class="cx">     static Ref&lt;CSSValue&gt; valueForFilter(const RenderStyle&amp;, const FilterOperations&amp;, AdjustPixelValuesForComputedStyle = AdjustPixelValues);
</span><span class="cx"> 
</span><ins>+    static Ref&lt;CSSPrimitiveValue&gt; fontWeightFromStyleValue(FontSelectionValue);
+    static Ref&lt;CSSPrimitiveValue&gt; fontStretchFromStyleValue(FontSelectionValue);
+    static Ref&lt;CSSFontStyleValue&gt; fontStyleFromStyleValue(FontSelectionValue);
+
</ins><span class="cx"> private:
</span><span class="cx">     // The styled element is either the element passed into computedPropertyValue, or the
</span><span class="cx">     // PseudoElement for :before and :after if they exist.
</span></span></pre></div>
<a id="trunkSourceWebCorecssFontFacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/FontFace.cpp (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/FontFace.cpp        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/css/FontFace.cpp        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -26,8 +26,10 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;FontFace.h&quot;
</span><span class="cx"> 
</span><ins>+#include &quot;CSSComputedStyleDeclaration.h&quot;
</ins><span class="cx"> #include &quot;CSSFontFaceSource.h&quot;
</span><span class="cx"> #include &quot;CSSFontFeatureValue.h&quot;
</span><ins>+#include &quot;CSSFontStyleValue.h&quot;
</ins><span class="cx"> #include &quot;CSSParser.h&quot;
</span><span class="cx"> #include &quot;CSSUnicodeRangeValue.h&quot;
</span><span class="cx"> #include &quot;CSSValueList.h&quot;
</span><span class="lines">@@ -39,6 +41,7 @@
</span><span class="cx"> #include &lt;runtime/ArrayBuffer.h&gt;
</span><span class="cx"> #include &lt;runtime/ArrayBufferView.h&gt;
</span><span class="cx"> #include &lt;runtime/JSCInlines.h&gt;
</span><ins>+#include &lt;wtf/text/StringBuilder.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -280,32 +283,30 @@
</span><span class="cx">     return m_backing-&gt;families()-&gt;cssText();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline bool rangeIsSingleValue(FontSelectionRange range, FontSelectionValue value)
-{
-    return range.minimum == value &amp;&amp; range.maximum == value;
-};
-
</del><span class="cx"> String FontFace::style() const
</span><span class="cx"> {
</span><span class="cx">     m_backing-&gt;updateStyleIfNeeded();
</span><span class="cx">     auto style = m_backing-&gt;italic();
</span><span class="cx"> 
</span><del>-    if (rangeIsSingleValue(style, italicValue()))
-        return ASCIILiteral(&quot;italic&quot;);
-    if (rangeIsSingleValue(style, normalItalicValue()))
-        return ASCIILiteral(&quot;normal&quot;);
</del><ins>+    auto minimum = ComputedStyleExtractor::fontStyleFromStyleValue(style.minimum);
+    auto maximum = ComputedStyleExtractor::fontStyleFromStyleValue(style.maximum);
</ins><span class="cx"> 
</span><del>-    if (style.minimum == style.maximum) {
-        auto value = static_cast&lt;float&gt;(style.minimum);
-        if (value &gt;= 0) {
-            auto floored = std::floor(value);
-            if (floored == value)
-                return String::format(&quot;oblique %ddeg&quot;, static_cast&lt;int&gt;(floored));
-        }
-        return String::format(&quot;oblique %fdeg&quot;, static_cast&lt;float&gt;(style.minimum));
</del><ins>+    if (minimum.get().equals(maximum.get()))
+        return minimum-&gt;cssText();
+
+    ASSERT(minimum-&gt;fontStyleValue-&gt;valueID() == CSSValueOblique);
+    ASSERT(maximum-&gt;fontStyleValue-&gt;valueID() == CSSValueOblique);
+
+    StringBuilder builder;
+    builder.append(minimum-&gt;fontStyleValue-&gt;cssText());
+    builder.append(' ');
+    if (minimum-&gt;obliqueValue.get() == maximum-&gt;obliqueValue.get())
+        builder.append(minimum-&gt;obliqueValue-&gt;cssText());
+    else {
+        builder.append(minimum-&gt;obliqueValue-&gt;cssText());
+        builder.append(maximum-&gt;obliqueValue-&gt;cssText());
</ins><span class="cx">     }
</span><del>-
-    return String::format(&quot;oblique %fdeg %fdeg&quot;, static_cast&lt;float&gt;(style.minimum), static_cast&lt;float&gt;(style.maximum));
</del><ins>+    return builder.toString();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String FontFace::weight() const
</span><span class="lines">@@ -313,22 +314,17 @@
</span><span class="cx">     m_backing-&gt;updateStyleIfNeeded();
</span><span class="cx">     auto weight = m_backing-&gt;weight();
</span><span class="cx"> 
</span><del>-    if (rangeIsSingleValue(weight, normalWeightValue()))
-        return ASCIILiteral(&quot;normal&quot;);
-    if (rangeIsSingleValue(weight, boldWeightValue()))
-        return ASCIILiteral(&quot;bold&quot;);
</del><ins>+    auto minimum = ComputedStyleExtractor::fontWeightFromStyleValue(weight.minimum);
+    auto maximum = ComputedStyleExtractor::fontWeightFromStyleValue(weight.maximum);
</ins><span class="cx"> 
</span><del>-    if (weight.minimum == weight.maximum) {
-        auto value = static_cast&lt;float&gt;(weight.minimum);
-        if (value &gt;= 0) {
-            auto floored = std::floor(value);
-            if (floored == value)
-                return String::format(&quot;%d&quot;, static_cast&lt;int&gt;(floored));
-        }
-        return String::format(&quot;%f&quot;, static_cast&lt;float&gt;(weight.minimum));
-    }
</del><ins>+    if (minimum.get().equals(maximum.get()))
+        return minimum-&gt;cssText();
</ins><span class="cx"> 
</span><del>-    return String::format(&quot;%f %f&quot;, static_cast&lt;float&gt;(weight.minimum), static_cast&lt;float&gt;(weight.maximum));
</del><ins>+    StringBuilder builder;
+    builder.append(minimum-&gt;cssText());
+    builder.append(' ');
+    builder.append(maximum-&gt;cssText());
+    return builder.toString();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String FontFace::stretch() const
</span><span class="lines">@@ -336,36 +332,17 @@
</span><span class="cx">     m_backing-&gt;updateStyleIfNeeded();
</span><span class="cx">     auto stretch = m_backing-&gt;stretch();
</span><span class="cx"> 
</span><del>-    if (rangeIsSingleValue(stretch, ultraCondensedStretchValue()))
-        return ASCIILiteral(&quot;ultra-condensed&quot;);
-    if (rangeIsSingleValue(stretch, extraCondensedStretchValue()))
-        return ASCIILiteral(&quot;extra-condensed&quot;);
-    if (rangeIsSingleValue(stretch, condensedStretchValue()))
-        return ASCIILiteral(&quot;condensed&quot;);
-    if (rangeIsSingleValue(stretch, semiCondensedStretchValue()))
-        return ASCIILiteral(&quot;semi-condensed&quot;);
-    if (rangeIsSingleValue(stretch, normalStretchValue()))
-        return ASCIILiteral(&quot;normal&quot;);
-    if (rangeIsSingleValue(stretch, semiExpandedStretchValue()))
-        return ASCIILiteral(&quot;semi-expanded&quot;);
-    if (rangeIsSingleValue(stretch, expandedStretchValue()))
-        return ASCIILiteral(&quot;expanded&quot;);
-    if (rangeIsSingleValue(stretch, extraExpandedStretchValue()))
-        return ASCIILiteral(&quot;extra-expanded&quot;);
-    if (rangeIsSingleValue(stretch, ultraExpandedStretchValue()))
-        return ASCIILiteral(&quot;ultra-expanded&quot;);
</del><ins>+    auto minimum = ComputedStyleExtractor::fontStretchFromStyleValue(stretch.minimum);
+    auto maximum = ComputedStyleExtractor::fontStretchFromStyleValue(stretch.maximum);
</ins><span class="cx"> 
</span><del>-    if (stretch.minimum == stretch.maximum) {
-        auto value = static_cast&lt;float&gt;(stretch.minimum);
-        if (value &gt;= 0) {
-            auto floored = std::floor(value);
-            if (floored == value)
-                return String::format(&quot;%d%%&quot;, static_cast&lt;int&gt;(floored));
-        }
-        return String::format(&quot;%f%%&quot;, static_cast&lt;float&gt;(stretch.minimum));
-    }
</del><ins>+    if (minimum.get().equals(maximum.get()))
+        return minimum-&gt;cssText();
</ins><span class="cx"> 
</span><del>-    return String::format(&quot;%f%% %f%%&quot;, static_cast&lt;float&gt;(stretch.minimum), static_cast&lt;float&gt;(stretch.maximum));
</del><ins>+    StringBuilder builder;
+    builder.append(minimum-&gt;cssText());
+    builder.append(' ');
+    builder.append(maximum-&gt;cssText());
+    return builder.toString();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String FontFace::unicodeRange() const
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleBuilderConverterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleBuilderConverter.h (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleBuilderConverter.h        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/css/StyleBuilderConverter.h        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -1193,7 +1193,7 @@
</span><span class="cx">     ASSERT(is&lt;CSSPrimitiveValue&gt;(value));
</span><span class="cx">     const auto&amp; primitiveValue = downcast&lt;CSSPrimitiveValue&gt;(value);
</span><span class="cx"> 
</span><del>-    if (primitiveValue.isPercentage() || primitiveValue.isNumber())
</del><ins>+    if (primitiveValue.isPercentage())
</ins><span class="cx">         return FontSelectionValue::clampFloat(primitiveValue.floatValue());
</span><span class="cx"> 
</span><span class="cx">     ASSERT(primitiveValue.isValueID());
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSPropertyParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (214418 => 214419)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp        2017-03-27 17:48:22 UTC (rev 214418)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp        2017-03-27 17:50:33 UTC (rev 214419)
</span><span class="lines">@@ -888,14 +888,12 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     if (range.atEnd())
</span><span class="cx">         return firstNumber;
</span><del>-    if (!consumeSlashIncludingWhitespace(range))
-        return nullptr;
</del><span class="cx">     auto secondNumber = consumeNumber(range, ValueRangeAll);
</span><span class="cx">     if (!secondNumber)
</span><span class="cx">         return nullptr;
</span><span class="cx">     if (firstNumber-&gt;floatValue() &gt; secondNumber-&gt;floatValue())
</span><span class="cx">         return nullptr;
</span><del>-    auto result = CSSValueList::createSlashSeparated();
</del><ins>+    auto result = CSSValueList::createSpaceSeparated();
</ins><span class="cx">     result-&gt;append(firstNumber.releaseNonNull());
</span><span class="cx">     result-&gt;append(secondNumber.releaseNonNull());
</span><span class="cx">     return RefPtr&lt;CSSValue&gt;(WTFMove(result));
</span><span class="lines">@@ -911,9 +909,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (auto result = consumeFontStretchKeywordValue(range))
</span><span class="cx">         return result;
</span><del>-    if (auto percent = consumePercent(range, ValueRangeAll))
-        return percent;
-    return consumeNumber(range, ValueRangeAll);
</del><ins>+    return consumePercent(range, ValueRangeAll);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(VARIATION_FONTS)
</span><span class="lines">@@ -921,39 +917,20 @@
</span><span class="cx"> {
</span><span class="cx">     if (auto result = consumeFontStretchKeywordValue(range))
</span><span class="cx">         return result;
</span><del>-    if (auto firstPercent = consumePercent(range, ValueRangeAll)) {
-        if (range.atEnd())
-            return firstPercent;
-        if (!consumeSlashIncludingWhitespace(range))
-            return nullptr;
-        auto secondPercent = consumePercent(range, ValueRangeAll);
-        if (!secondPercent)
-            return nullptr;
-        if (firstPercent-&gt;floatValue() &gt; secondPercent-&gt;floatValue())
-            return nullptr;
-        auto result = CSSValueList::createSlashSeparated();
-        result-&gt;append(firstPercent.releaseNonNull());
-        result-&gt;append(secondPercent.releaseNonNull());
-        return RefPtr&lt;CSSValue&gt;(WTFMove(result));
-    }
-
-    if (auto firstNumber = consumeNumber(range, ValueRangeAll)) {
-        if (range.atEnd())
-            return firstNumber;
-        if (!consumeSlashIncludingWhitespace(range))
-            return nullptr;
-        auto secondNumber = consumeNumber(range, ValueRangeAll);
-        if (!secondNumber)
-            return nullptr;
-        if (firstNumber-&gt;floatValue() &gt; secondNumber-&gt;floatValue())
-            return nullptr;
-        auto result = CSSValueList::createSlashSeparated();
-        result-&gt;append(firstNumber.releaseNonNull());
-        result-&gt;append(secondNumber.releaseNonNull());
-        return RefPtr&lt;CSSValue&gt;(WTFMove(result));
-    }
-
-    return nullptr;
</del><ins>+    auto firstPercent = consumePercent(range, ValueRangeAll);
+    if (!firstPercent)
+        return nullptr;
+    if (range.atEnd())
+        return firstPercent;
+    auto secondPercent = consumePercent(range, ValueRangeAll);
+    if (!secondPercent)
+        return nullptr;
+    if (firstPercent-&gt;floatValue() &gt; secondPercent-&gt;floatValue())
+        return nullptr;
+    auto result = CSSValueList::createSpaceSeparated();
+    result-&gt;append(firstPercent.releaseNonNull());
+    result-&gt;append(secondPercent.releaseNonNull());
+    return RefPtr&lt;CSSValue&gt;(WTFMove(result));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -977,8 +954,6 @@
</span><span class="cx">         return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueOblique));
</span><span class="cx">     if (auto angle = consumeAngle(range, cssParserMode))
</span><span class="cx">         return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueOblique), WTFMove(angle));
</span><del>-    if (auto number = consumeNumber(range, ValueRangeAll))
-        return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueOblique), CSSValuePool::singleton().createValue(number-&gt;value&lt;double&gt;(), CSSPrimitiveValue::CSS_DEG));
</del><span class="cx">     return CSSFontStyleValue::create(CSSValuePool::singleton().createIdentifierValue(CSSValueOblique));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1009,23 +984,6 @@
</span><span class="cx">         return CSSFontStyleRangeValue::create(keyword.releaseNonNull(), WTFMove(result));
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (auto firstNumber = consumeNumber(range, ValueRangeAll)) {
-        if (range.atEnd()) {
-            auto result = CSSValueList::createSpaceSeparated();
-            result-&gt;append(firstNumber.releaseNonNull());
-            return CSSFontStyleRangeValue::create(keyword.releaseNonNull(), WTFMove(result));
-        }
-        auto secondNumber = consumeNumber(range, ValueRangeAll);
-        if (!secondNumber)
-            return nullptr;
-        if (firstNumber-&gt;floatValue() &gt; secondNumber-&gt;floatValue())
-            return nullptr;
-        auto result = CSSValueList::createSpaceSeparated();
-        result-&gt;append(CSSValuePool::singleton().createValue(firstNumber-&gt;value&lt;double&gt;(), CSSPrimitiveValue::CSS_DEG));
-        result-&gt;append(CSSValuePool::singleton().createValue(secondNumber-&gt;value&lt;double&gt;(), CSSPrimitiveValue::CSS_DEG));
-        return CSSFontStyleRangeValue::create(keyword.releaseNonNull(), WTFMove(result));
-    }
-
</del><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre>
</div>
</div>

</body>
</html>