<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CSS MultiColumn] Parse &quot;columns: auto &lt;length&gt;&quot; shorthand property value properly"
   href="https://bugs.webkit.org/show_bug.cgi?id=143248">bug 143248</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #249890 Flags</td>
           <td>review?
           </td>
           <td>review+, commit-queue-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CSS MultiColumn] Parse &quot;columns: auto &lt;length&gt;&quot; shorthand property value properly"
   href="https://bugs.webkit.org/show_bug.cgi?id=143248#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CSS MultiColumn] Parse &quot;columns: auto &lt;length&gt;&quot; shorthand property value properly"
   href="https://bugs.webkit.org/show_bug.cgi?id=143248">bug 143248</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=249890&amp;action=diff" name="attach_249890" title="Patch">attachment 249890</a> <a href="attachment.cgi?id=249890&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=249890&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=249890&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/css/CSSParser.cpp:3618
&gt; +RefPtr&lt;CSSValue&gt; CSSParser::parseColumnWidth()
&gt; +{
&gt; +    ValueWithCalculation valueWithCalculation(*m_valueList-&gt;current());
&gt; +    CSSValueID id = valueWithCalculation.value().id;
&gt; +    // Always parse this property in strict mode, since it would be ambiguous otherwise when used in the 'columns' shorthand property.
&gt; +    if (id == CSSValueAuto || (validateUnit(valueWithCalculation, FLength | FNonNeg, CSSStrictMode) &amp;&amp; parsedDouble(valueWithCalculation))) {
&gt; +        RefPtr&lt;CSSValue&gt; parsedValue = parseValidPrimitive(id, valueWithCalculation);
&gt; +        m_valueList-&gt;next();
&gt; +        return parsedValue;
&gt; +    }
&gt; +
&gt; +    return nullptr;
&gt; +}</span >

I think these functions would read better with early return (check for error and return nullptr) rather than nesting the normal code path inside an if.

<span class="quote">&gt; Source/WebCore/css/CSSParser.cpp:3661
&gt; +    ASSERT(columnCount || coulmnWidth);</span >

This will fail to compile because of the typo: coulmnWidth.

<span class="quote">&gt; LayoutTests/fast/css/getPropertyValue-columns.html:38
&gt; +      shouldBeEqualToString('columnsValue(&quot;columns4&quot;)', 'auto auto');</span >

Is this serialization of &quot;auto&quot; as &quot;auto auto&quot; correct behavior, or a bug?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>