<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <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#c18">Comment # 18</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:jh718.park&#64;samsung.com" title="Joonghun Park &lt;jh718.park&#64;samsung.com&gt;"> <span class="fn">Joonghun Park</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=143248#c17">comment #17</a>)
<span class="quote">&gt; 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>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <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>
&gt; 
&gt; &gt; Source/WebCore/css/CSSParser.cpp:3618
&gt; &gt; +RefPtr&lt;CSSValue&gt; CSSParser::parseColumnWidth()
&gt; &gt; +{
&gt; &gt; +    ValueWithCalculation valueWithCalculation(*m_valueList-&gt;current());
&gt; &gt; +    CSSValueID id = valueWithCalculation.value().id;
&gt; &gt; +    // Always parse this property in strict mode, since it would be ambiguous otherwise when used in the 'columns' shorthand property.
&gt; &gt; +    if (id == CSSValueAuto || (validateUnit(valueWithCalculation, FLength | FNonNeg, CSSStrictMode) &amp;&amp; parsedDouble(valueWithCalculation))) {
&gt; &gt; +        RefPtr&lt;CSSValue&gt; parsedValue = parseValidPrimitive(id, valueWithCalculation);
&gt; &gt; +        m_valueList-&gt;next();
&gt; &gt; +        return parsedValue;
&gt; &gt; +    }
&gt; &gt; +
&gt; &gt; +    return nullptr;
&gt; &gt; +}
&gt; 
&gt; I think these functions would read better with early return (check for error
&gt; and return nullptr) rather than nesting the normal code path inside an if.
&gt; Yes, I'd apply it.
&gt; &gt; Source/WebCore/css/CSSParser.cpp:3661
&gt; &gt; +    ASSERT(columnCount || coulmnWidth);
&gt; 
&gt; This will fail to compile because of the typo: coulmnWidth.
&gt; After applying your feedback, I found this assert statment is not safisfied when we are in &quot;columns: auto&quot; case. So I removed it.
&gt; &gt; LayoutTests/fast/css/getPropertyValue-columns.html:38
&gt; &gt; +      shouldBeEqualToString('columnsValue(&quot;columns4&quot;)', 'auto auto');
&gt; 
&gt; Is this serialization of &quot;auto&quot; as &quot;auto auto&quot; correct behavior, or a bug?</span >
Hmm, it seems that spec doesn't say anything about it. In my opinion, 'auto auto' looks more consistent, but I choose to maintain current state.</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>