<!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>[169349] 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/169349">169349</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-05-26 09:25:25 -0700 (Mon, 26 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[CSS Grid Layout] Implementation of the &quot;grid&quot; shorthand.
https://bugs.webkit.org/show_bug.cgi?id=132122

Patch by Javier Fernandez &lt;jfernandez@igalia.com&gt; on 2014-05-26
Reviewed by Darin Adler.

Source/WebCore:
The grid property is a shorthand that sets all of the explicit
grid properties (grid-template-rows, grid-template-columns, and
grid-template-areas) as well as all the implicit grid properties
(grid-auto-rows, grid-auto-columns, and grid-auto-flow) in a
single declaration

Notice that either explicit or implicit grid can be specified,
assigning the initial values to the omitted properties.

Test: fast/css-grid-layout/grid-shorthand-get-set.html

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseGridShorthand):
* css/CSSParser.h:
* css/CSSPropertyNames.in:
* css/StylePropertyShorthand.cpp:
(WebCore::webkitGridShorthand):
* css/StylePropertyShorthand.h:

LayoutTests:
Layout Test for the basic functionality of the 'grid' shorthand. It was
also added a new javascript file with some utility functions.

* fast/css-grid-layout/grid-shorthand-get-set-expected.txt: Added.
* fast/css-grid-layout/grid-shorthand-get-set.html: Added.
* fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js: Added.
(testGridDefinitionsValues):
(testGridDefinitionsSetJSValues):
(testNonGridDefinitionsSetJSValues):
(checkGridDefinitionsSetJSValues):
(testGridDefinitionsSetBadJSValues):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</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="#trunkSourceWebCorecssCSSParsercpp">trunk/Source/WebCore/css/CSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSParserh">trunk/Source/WebCore/css/CSSParser.h</a></li>
<li><a href="#trunkSourceWebCorecssCSSPropertyNamesin">trunk/Source/WebCore/css/CSSPropertyNames.in</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertiescpp">trunk/Source/WebCore/css/StyleProperties.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertyShorthandcpp">trunk/Source/WebCore/css/StylePropertyShorthand.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertyShorthandh">trunk/Source/WebCore/css/StylePropertyShorthand.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridshorthandgetsetexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridshorthandgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutresourcesgridshorthandparsingutilsjs">trunk/LayoutTests/fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/LayoutTests/ChangeLog        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2014-05-26  Javier Fernandez  &lt;jfernandez@igalia.com&gt;
+
+        [CSS Grid Layout] Implementation of the &quot;grid&quot; shorthand.
+        https://bugs.webkit.org/show_bug.cgi?id=132122
+
+        Reviewed by Darin Adler.
+
+        Layout Test for the basic functionality of the 'grid' shorthand. It was
+        also added a new javascript file with some utility functions.
+
+        * fast/css-grid-layout/grid-shorthand-get-set-expected.txt: Added.
+        * fast/css-grid-layout/grid-shorthand-get-set.html: Added.
+        * fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js: Added.
+        (testGridDefinitionsValues):
+        (testGridDefinitionsSetJSValues):
+        (testNonGridDefinitionsSetJSValues):
+        (checkGridDefinitionsSetJSValues):
+        (testGridDefinitionsSetBadJSValues):
+
</ins><span class="cx"> 2014-05-26  Michał Pakuła vel Rutka  &lt;m.pakula@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed EFL gardening
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridshorthandgetsetexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt (0 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -0,0 +1,222 @@
</span><ins>+This test checks that the 'grid' shorthand is properly parsed and the longhand properties correctly assigned.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Test getting the longhand values when shorthand is set through CSS.
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithNone, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-columns') is &quot;15px&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-rows') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplate1, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNoneAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowNone, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;column&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
+
+Test setting wrong values for 'grid' shorthand through CSS (they should resolve to the default: 'none')
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithExplicitAndImplicit, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone1, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithMisplacedNone2, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash2, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithWrongSlash3, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowRowAndColumn, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithoutAutoFlowAndExtraBreath, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString1, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString2, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithAutoFlowString3, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplateAndAutoFlow, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithTemplateAndMisplacedString1, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+
+Test getting and setting 'grid' shorthand through JS
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;10px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;20px&quot;
+PASS element.style.webkitGridTemplateRows is &quot;20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;none&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS element.style.webkitGridAutoFlow is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS element.style.webkitGridAutoColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS element.style.webkitGridAutoRows is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;10px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;(line) 20px&quot;
+PASS element.style.webkitGridTemplateRows is &quot;(line) 20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot;&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;\&quot;a\&quot;&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS element.style.webkitGridAutoFlow is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS element.style.webkitGridAutoColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS element.style.webkitGridAutoRows is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS element.style.webkitGridTemplateRows is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row&quot;
+PASS element.style.webkitGridAutoFlow is &quot;row&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;20px&quot;
+PASS element.style.webkitGridAutoColumns is &quot;20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
+PASS element.style.webkitGridAutoRows is &quot;20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS element.style.webkitGridTemplateRows is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;column&quot;
+PASS element.style.webkitGridAutoFlow is &quot;column&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;20px&quot;
+PASS element.style.webkitGridAutoColumns is &quot;20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
+PASS element.style.webkitGridAutoRows is &quot;10px&quot;
+
+Test the initial value
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is 'none'
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is 'none'
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is 'none'
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'none'
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is 'auto'
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is 'auto'
+
+Test setting grid-template-columns and grid-template-rows back to 'none' through JS
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS element.style.webkitGridTemplateRows is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;column&quot;
+PASS element.style.webkitGridAutoFlow is &quot;column&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS element.style.webkitGridAutoColumns is &quot;10px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
+PASS element.style.webkitGridAutoRows is &quot;20px&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS element.style.webkitGridTemplateColumns is &quot;none&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS element.style.webkitGridTemplateRows is &quot;none&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS element.style.webkitGridTemplateAreas is &quot;none&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;none&quot;
+PASS element.style.webkitGridAutoFlow is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS element.style.webkitGridAutoColumns is &quot;initial&quot;
+PASS getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
+PASS element.style.webkitGridAutoRows is &quot;initial&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridshorthandgetsethtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html (0 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -0,0 +1,152 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner)
+    testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
+&lt;/script&gt;
+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;style&gt;
+#gridWithNone {
+    -webkit-grid: none;
+}
+#gridWithTemplate {
+    -webkit-grid: 15px / 10px;
+}
+#gridWithTemplate1 {
+    -webkit-grid: none / 10px;
+}
+#gridWithAutoFlowNoneAndColumnsAndRows {
+    -webkit-grid: none 10px / 20px;
+}
+#gridWithAutoFlowAndColumns {
+    -webkit-grid: row 10px;
+}
+#gridWithAutoFlowNone {
+    -webkit-grid: none 10px;
+}
+#gridWithAutoFlowAndColumnsAndRows {
+    -webkit-grid: column 10px / 20px;
+}
+
+/* Bad values. */
+
+#gridWithExplicitAndImplicit {
+    -webkit-grid: 10px / 20px column;
+}
+#gridWithMisplacedNone1 {
+    -webkit-grid: column 10px / none 20px;
+}
+#gridWithMisplacedNone2 {
+    -webkit-grid: 10px / 20px none;
+}
+#gridWithWrongSlash1 {
+    -webkit-grid: column / 10px;
+}
+#gridWithWrongSlash2 {
+    -webkit-grid: column 10px 20px;
+}
+#gridWithWrongSlash3 {
+    -webkit-grid: 5x / 10px / 20px;
+}
+#gridWithAutoFlowRowAndColumn {
+    -webkit-grid: row column 10px;
+}
+#gridWithoutAutoFlowAndExtraBreath {
+    -webkit-grid: row 10px / 20px 30px;
+}
+#gridWithAutoFlowString1 {
+    -webkit-grid: row 10px &quot;a&quot;;
+}
+#gridWithAutoFlowString2 {
+    -webkit-grid: row &quot;a&quot; 10px;
+}
+#gridWithAutoFlowString3 {
+    -webkit-grid: row &quot;a&quot;;
+}
+#gridWithTemplateAndAutoFlow {
+    -webkit-grid: 10px / 10px row;
+}
+#gridWithTemplateAndMisplacedString1 {
+    -webkit-grid: 10px / 10px &quot;a&quot;;
+}
+&lt;/style&gt;
+&lt;script src=&quot;../../resources/js-test.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithNone&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithTemplate&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithTemplate1&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowNoneAndColumnsAndRows&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowAndColumns&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowNone&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowAndColumnsAndRows&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithExplicitAndImplicit&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithMisplacedNone1&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithMisplacedNone2&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithWrongSlash1&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithWrongSlash2&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithWrongSlash3&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowRowAndColumn&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithoutAutoFlowAndExtraBreath&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowString1&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowString2&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowString3&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithTemplateAndAutoFlow&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridWithTemplateAndMisplacedString1&quot;&gt;&lt;/div&gt;
+&lt;script src=&quot;resources/grid-shorthand-parsing-utils.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+    description(&quot;This test checks that the 'grid' shorthand is properly parsed and the longhand properties correctly assigned.&quot;);
+
+    debug(&quot;Test getting the longhand values when shorthand is set through CSS.&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithNone&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplate&quot;), &quot;15px&quot;, &quot;10px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplate1&quot;), &quot;none&quot;, &quot;10px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowNoneAndColumnsAndRows&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;10px&quot;, &quot;20px&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowAndColumns&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;10px&quot;, &quot;10px&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowNone&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;10px&quot;, &quot;10px&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowAndColumnsAndRows&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column&quot;, &quot;10px&quot;, &quot;20px&quot;);
+
+    debug(&quot;&quot;);
+    debug(&quot;Test setting wrong values for 'grid' shorthand through CSS (they should resolve to the default: 'none')&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithExplicitAndImplicit&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedNone1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedNone2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash3&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowRowAndColumn&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithoutAutoFlowAndExtraBreath&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowString1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowString2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowString3&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplateAndAutoFlow&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplateAndMisplacedString1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+
+    debug(&quot;&quot;);
+    debug(&quot;Test getting and setting 'grid' shorthand through JS&quot;);
+    testGridDefinitionsSetJSValues(&quot;10px / 20px&quot;, &quot;10px&quot;, &quot;20px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;, &quot;10px&quot;, &quot;20px&quot;, &quot;none&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;);
+    testGridDefinitionsSetJSValues(&quot;10px / (line) 'a' 20px&quot;, &quot;10px&quot;, &quot;(line) 20px&quot;, &quot;\&quot;a\&quot;&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;, &quot;10px&quot;, &quot;(line) 20px&quot;, &quot;\&quot;a\&quot;&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;);
+    testGridDefinitionsSetJSValues(&quot;row 20px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;20px&quot;, &quot;20px&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;row&quot;, &quot;20px&quot;, &quot;20px&quot;);
+    testGridDefinitionsSetJSValues(&quot;column 20px / 10px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column&quot;, &quot;20px&quot;, &quot;10px&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;column&quot;, &quot;20px&quot;, &quot;10px&quot;);
+
+    debug(&quot;&quot;);
+    debug(&quot;Test the initial value&quot;);
+    var element = document.createElement(&quot;div&quot;);
+    document.body.appendChild(element);
+    testGridDefinitionsValues(element, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')&quot;, &quot;'none'&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')&quot;, &quot;'none'&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas')&quot;, &quot;'none'&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow')&quot;, &quot;'none'&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns')&quot;, &quot;'auto'&quot;);
+    shouldBe(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows')&quot;, &quot;'auto'&quot;);
+
+    debug(&quot;&quot;);
+    debug(&quot;Test setting grid-template-columns and grid-template-rows back to 'none' through JS&quot;);
+    testGridDefinitionsSetJSValues(&quot;column 10px / 20px&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column&quot;, &quot;10px&quot;, &quot;20px&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;column&quot;, &quot;10px&quot;, &quot;20px&quot;);
+    testGridDefinitionsSetJSValues(&quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;auto&quot;, &quot;auto&quot;, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;initial&quot;, &quot;initial&quot;, &quot;initial&quot;);
+
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutresourcesgridshorthandparsingutilsjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js (0 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/resources/grid-shorthand-parsing-utils.js        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+function testGridDefinitionsValues(element, columnsValue, rowsValue, areasValue, autoFlowValue, autoColumnsValue, autoRowsValue)
+{
+    window.element = element;
+    var elementID = element.id || &quot;element&quot;;
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-template-columns')&quot;, columnsValue);
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-template-rows')&quot;, rowsValue);
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-template-areas')&quot;, areasValue);
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-auto-flow')&quot;, autoFlowValue);
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-auto-columns')&quot;, autoColumnsValue);
+    shouldBeEqualToString(&quot;window.getComputedStyle(&quot; + elementID + &quot;, '').getPropertyValue('-webkit-grid-auto-rows')&quot;, autoRowsValue);
+}
+
+function testGridDefinitionsSetJSValues(shorthandValue, computedColumnsValue, computedRowsValue, computedAreasValue, computedAutoFlowValue, computedAutoColumnsValue, computedAutoRowsValue, jsColumnsValue, jsRowsValue, jsAreasValue, jsAutoFlowValue, jsAutoColumnsValue, jsAutoRowsValue)
+{
+    checkGridDefinitionsSetJSValues(true, shorthandValue, computedColumnsValue, computedRowsValue, computedAreasValue, computedAutoFlowValue, computedAutoColumnsValue, computedAutoRowsValue, jsColumnsValue, jsRowsValue, jsAreasValue, jsAutoFlowValue, jsAutoColumnsValue, jsAutoRowsValue);
+}
+
+function testNonGridDefinitionsSetJSValues(shorthandValue, computedColumnsValue, computedRowsValue, computedAreasValue, computedAutoFlowValue, computedAutoColumnsValue, computedAutoRowsValue, jsColumnsValue, jsRowsValue, jsAreasValue, jsAutoFlowValue, jsAutoColumnsValue, jsAutoRowValue)
+{
+    checkGridDefinitionsSetJSValues(false, shorthandValue, computedColumnsValue, computedRowsValue, computedAreasValue, computedAutoFlowValue, computedAutoColumnsValue, computedAutoRowsValue, jsColumnsValue, jsRowsValue, jsAreasValue, jsAutoFlowValue, jsAutoColumnsValue, jsAutoRowValue);
+}
+
+function checkGridDefinitionsSetJSValues(useGrid, shorthandValue, computedColumnsValue, computedRowsValue, computedAreasValue, computedAutoFlowValue, computedAutoColumnsValue, computedAutoRowsValue, jsColumnsValue, jsRowsValue, jsAreasValue, jsAutoFlowValue, jsAutoColumnsValue, jsAutoRowsValue)
+{
+    window.element = document.createElement(&quot;div&quot;);
+    document.body.appendChild(element);
+    if (useGrid) {
+        element.style.display = &quot;-webkit-grid&quot;;
+        element.style.width = &quot;800px&quot;;
+        element.style.height = &quot;600px&quot;;
+    }
+    element.style.font = &quot;10px Ahem&quot;; // Used to resolve em font consistently.
+    element.style.webkitGrid = shorthandValue;
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-columns')&quot;, computedColumnsValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridTemplateColumns&quot;, jsColumnsValue || computedColumnsValue);
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-rows')&quot;, computedRowsValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridTemplateRows&quot;, jsRowsValue || computedRowsValue);
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-template-areas')&quot;, computedAreasValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridTemplateAreas&quot;, jsAreasValue || computedAreasValue);
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow')&quot;, computedAutoFlowValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridAutoFlow&quot;, jsAutoFlowValue || computedAutoFlowValue);
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-columns')&quot;, computedAutoColumnsValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridAutoColumns&quot;, jsAutoColumnsValue || computedAutoColumnsValue);
+    shouldBeEqualToString(&quot;getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-rows')&quot;, computedAutoRowsValue);
+    shouldBeEqualToString(&quot;element.style.webkitGridAutoRows&quot;, jsAutoRowsValue || computedAutoRowsValue);
+    document.body.removeChild(element);
+}
+
+function testGridDefinitionsSetBadJSValues(shorthandValue)
+{
+    window.element = document.createElement(&quot;div&quot;);
+    document.body.appendChild(element);
+    element.style.webkitGrid = shorthandValue;
+    // We can't use testSetJSValues as element.style.webkitGridTemplateRows returns &quot;&quot;.
+    testGridDefinitionsValues(element, &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
+    document.body.removeChild(element);
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/ChangeLog        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -1,3 +1,32 @@
</span><ins>+2014-05-26  Javier Fernandez  &lt;jfernandez@igalia.com&gt;
+
+        [CSS Grid Layout] Implementation of the &quot;grid&quot; shorthand.
+        https://bugs.webkit.org/show_bug.cgi?id=132122
+
+        Reviewed by Darin Adler.
+
+        The grid property is a shorthand that sets all of the explicit
+        grid properties (grid-template-rows, grid-template-columns, and
+        grid-template-areas) as well as all the implicit grid properties
+        (grid-auto-rows, grid-auto-columns, and grid-auto-flow) in a
+        single declaration
+
+        Notice that either explicit or implicit grid can be specified,
+        assigning the initial values to the omitted properties.
+
+        Test: fast/css-grid-layout/grid-shorthand-get-set.html
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::propertyValue):
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::parseValue):
+        (WebCore::CSSParser::parseGridShorthand):
+        * css/CSSParser.h:
+        * css/CSSPropertyNames.in:
+        * css/StylePropertyShorthand.cpp:
+        (WebCore::webkitGridShorthand):
+        * css/StylePropertyShorthand.h:
+
</ins><span class="cx"> 2014-05-26  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Subpixel layout: Legacy Element.offset* client* return values are invalid in certain cases.
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -2084,6 +2084,8 @@
</span><span class="cx">             return getCSSPropertyValuesForGridShorthand(webkitGridAreaShorthand());
</span><span class="cx">         case CSSPropertyWebkitGridTemplate:
</span><span class="cx">             return getCSSPropertyValuesForGridShorthand(webkitGridTemplateShorthand());
</span><ins>+        case CSSPropertyWebkitGrid:
+            return getCSSPropertyValuesForGridShorthand(webkitGridShorthand());
</ins><span class="cx">         case CSSPropertyWebkitGridColumn:
</span><span class="cx">             return getCSSPropertyValuesForGridShorthand(webkitGridColumnShorthand());
</span><span class="cx">         case CSSPropertyWebkitGridRow:
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.cpp (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.cpp        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/CSSParser.cpp        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -2585,6 +2585,9 @@
</span><span class="cx">     case CSSPropertyWebkitGridTemplate:
</span><span class="cx">         return parseGridTemplateShorthand(important);
</span><span class="cx"> 
</span><ins>+    case CSSPropertyWebkitGrid:
+        return parseGridShorthand(important);
+
</ins><span class="cx">     case CSSPropertyWebkitGridArea:
</span><span class="cx">         return parseGridAreaShorthand(important);
</span><span class="cx"> 
</span><span class="lines">@@ -4887,6 +4890,69 @@
</span><span class="cx">     return parseGridTemplateRowsAndAreas(columnsValue, important);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+bool CSSParser::parseGridShorthand(bool important)
+{
+    ShorthandScope scope(this, CSSPropertyWebkitGrid);
+    ASSERT(shorthandForProperty(CSSPropertyWebkitGrid).length() == 6);
+
+    // 1- &lt;grid-template&gt;
+    if (parseGridTemplateShorthand(important)) {
+        // It can only be specified the explicit or the implicit grid properties in a single grid declaration.
+        // The sub-properties not specified are set to their initial value, as normal for shorthands.
+        addProperty(CSSPropertyWebkitGridAutoFlow, cssValuePool().createImplicitInitialValue(), important);
+        addProperty(CSSPropertyWebkitGridAutoColumns, cssValuePool().createImplicitInitialValue(), important);
+        addProperty(CSSPropertyWebkitGridAutoRows, cssValuePool().createImplicitInitialValue(), important);
+        return true;
+    }
+
+    // Need to rewind parsing to explore the alternative syntax of this shorthand.
+    m_valueList-&gt;setCurrentIndex(0);
+
+    // 2- &lt;grid-auto-flow&gt; [ &lt;grid-auto-columns&gt; [ / &lt;grid-auto-rows&gt; ]? ]
+    CSSValueID id = m_valueList-&gt;current()-&gt;id;
+    if (id != CSSValueRow &amp;&amp; id != CSSValueColumn &amp;&amp; id != CSSValueNone)
+        return false;
+
+    RefPtr&lt;CSSValue&gt; autoFlowValue = cssValuePool().createIdentifierValue(id);
+    RefPtr&lt;CSSValue&gt; autoColumnsValue;
+    RefPtr&lt;CSSValue&gt; autoRowsValue;
+
+    if (m_valueList-&gt;next()) {
+        autoColumnsValue = parseGridTrackSize(*m_valueList);
+        if (!autoColumnsValue)
+            return false;
+        if (m_valueList-&gt;current()) {
+            if (!isForwardSlashOperator(m_valueList-&gt;current()) || !m_valueList-&gt;next())
+                return false;
+            autoRowsValue = parseGridTrackSize(*m_valueList);
+            if (!autoRowsValue)
+                return false;
+        }
+        if (m_valueList-&gt;current())
+            return false;
+    } else {
+        // Other omitted values are set to their initial values.
+        autoColumnsValue = cssValuePool().createImplicitInitialValue();
+        autoRowsValue = cssValuePool().createImplicitInitialValue();
+    }
+
+    // if &lt;grid-auto-rows&gt; value is omitted, it is set to the value specified for grid-auto-columns.
+    if (!autoRowsValue)
+        autoRowsValue = autoColumnsValue;
+
+    addProperty(CSSPropertyWebkitGridAutoFlow, autoFlowValue.release(), important);
+    addProperty(CSSPropertyWebkitGridAutoColumns, autoColumnsValue.release(), important);
+    addProperty(CSSPropertyWebkitGridAutoRows, autoRowsValue.release(), important);
+
+    // It can only be specified the explicit or the implicit grid properties in a single grid declaration.
+    // The sub-properties not specified are set to their initial value, as normal for shorthands.
+    addProperty(CSSPropertyWebkitGridTemplateColumns, cssValuePool().createImplicitInitialValue(), important);
+    addProperty(CSSPropertyWebkitGridTemplateRows, cssValuePool().createImplicitInitialValue(), important);
+    addProperty(CSSPropertyWebkitGridTemplateAreas, cssValuePool().createImplicitInitialValue(), important);
+
+    return true;
+}
+
</ins><span class="cx"> bool CSSParser::parseGridAreaShorthand(bool important)
</span><span class="cx"> {
</span><span class="cx">     ShorthandScope scope(this, CSSPropertyWebkitGridArea);
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParserh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.h (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.h        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/CSSParser.h        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -162,6 +162,7 @@
</span><span class="cx">     bool parseGridItemPositionShorthand(CSSPropertyID, bool important);
</span><span class="cx">     bool parseGridTemplateRowsAndAreas(PassRefPtr&lt;CSSValue&gt;, bool important);
</span><span class="cx">     bool parseGridTemplateShorthand(bool important);
</span><ins>+    bool parseGridShorthand(bool important);
</ins><span class="cx">     bool parseGridAreaShorthand(bool important);
</span><span class="cx">     bool parseSingleGridAreaLonghand(RefPtr&lt;CSSValue&gt;&amp;);
</span><span class="cx">     PassRefPtr&lt;CSSValue&gt; parseGridTrackList();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPropertyNamesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPropertyNames.in (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPropertyNames.in        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/CSSPropertyNames.in        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -305,6 +305,7 @@
</span><span class="cx"> -webkit-justify-content
</span><span class="cx"> -webkit-font-size-delta
</span><span class="cx"> #if defined(ENABLE_CSS_GRID_LAYOUT) &amp;&amp; ENABLE_CSS_GRID_LAYOUT
</span><ins>+-webkit-grid
</ins><span class="cx"> -webkit-grid-area
</span><span class="cx"> -webkit-grid-auto-columns
</span><span class="cx"> -webkit-grid-auto-rows
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleProperties.cpp (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleProperties.cpp        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/StyleProperties.cpp        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -162,6 +162,8 @@
</span><span class="cx">         return getShorthandValue(webkitGridAreaShorthand());
</span><span class="cx">     case CSSPropertyWebkitGridTemplate:
</span><span class="cx">         return getShorthandValue(webkitGridTemplateShorthand());
</span><ins>+    case CSSPropertyWebkitGrid:
+        return getShorthandValue(webkitGridShorthand());
</ins><span class="cx">     case CSSPropertyWebkitGridColumn:
</span><span class="cx">         return getShorthandValue(webkitGridColumnShorthand());
</span><span class="cx">     case CSSPropertyWebkitGridRow:
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertyShorthandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StylePropertyShorthand.cpp (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StylePropertyShorthand.cpp        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/StylePropertyShorthand.cpp        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -352,6 +352,19 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_GRID_LAYOUT)
</span><ins>+StylePropertyShorthand webkitGridShorthand()
+{
+    static const CSSPropertyID webkitGridProperties[] = {
+        CSSPropertyWebkitGridTemplateColumns,
+        CSSPropertyWebkitGridTemplateRows,
+        CSSPropertyWebkitGridTemplateAreas,
+        CSSPropertyWebkitGridAutoFlow,
+        CSSPropertyWebkitGridAutoColumns,
+        CSSPropertyWebkitGridAutoRows
+    };
+    return StylePropertyShorthand(CSSPropertyWebkitGrid, webkitGridProperties, WTF_ARRAY_LENGTH(webkitGridProperties));
+}
+
</ins><span class="cx"> StylePropertyShorthand webkitGridTemplateShorthand()
</span><span class="cx"> {
</span><span class="cx">     static const CSSPropertyID webkitGridTemplateProperties[] = {
</span><span class="lines">@@ -569,6 +582,8 @@
</span><span class="cx">         return webkitGridAreaShorthand();
</span><span class="cx">     case CSSPropertyWebkitGridTemplate:
</span><span class="cx">         return webkitGridTemplateShorthand();
</span><ins>+    case CSSPropertyWebkitGrid:
+        return webkitGridShorthand();
</ins><span class="cx">     case CSSPropertyWebkitGridColumn:
</span><span class="cx">         return webkitGridColumnShorthand();
</span><span class="cx">     case CSSPropertyWebkitGridRow:
</span><span class="lines">@@ -772,7 +787,11 @@
</span><span class="cx">     case CSSPropertyWebkitGridTemplateColumns:
</span><span class="cx">     case CSSPropertyWebkitGridTemplateRows:
</span><span class="cx">     case CSSPropertyWebkitGridTemplateAreas:
</span><del>-        return makeVector(webkitGridTemplateShorthand());
</del><ins>+        return makeVector(webkitGridTemplateShorthand(), webkitGridShorthand());
+    case CSSPropertyWebkitGridAutoFlow:
+    case CSSPropertyWebkitGridAutoColumns:
+    case CSSPropertyWebkitGridAutoRows:
+        return makeVector(webkitGridShorthand());
</ins><span class="cx"> #endif
</span><span class="cx">     case CSSPropertyWebkitMarginBeforeCollapse:
</span><span class="cx">     case CSSPropertyWebkitMarginAfterCollapse:
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertyShorthandh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StylePropertyShorthand.h (169348 => 169349)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StylePropertyShorthand.h        2014-05-26 16:11:41 UTC (rev 169348)
+++ trunk/Source/WebCore/css/StylePropertyShorthand.h        2014-05-26 16:25:25 UTC (rev 169349)
</span><span class="lines">@@ -99,6 +99,7 @@
</span><span class="cx"> StylePropertyShorthand webkitColumnRuleShorthand();
</span><span class="cx"> StylePropertyShorthand webkitFlexFlowShorthand();
</span><span class="cx"> StylePropertyShorthand webkitFlexShorthand();
</span><ins>+StylePropertyShorthand webkitGridShorthand();
</ins><span class="cx"> StylePropertyShorthand webkitGridTemplateShorthand();
</span><span class="cx"> StylePropertyShorthand webkitGridAreaShorthand();
</span><span class="cx"> StylePropertyShorthand webkitGridColumnShorthand();
</span></span></pre>
</div>
</div>

</body>
</html>