<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>104821</bug_id>
          
          <creation_ts>2012-12-12 09:21:36 -0800</creation_ts>
          <short_desc>[CSS Grid Layout] element.style.webkitGridRows / webkitGridColumns doesn&apos;t return the right value</short_desc>
          <delta_ts>2013-11-21 10:41:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>60731</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Chaffraix">jchaffraix</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>donggwan.kim</cc>
    
    <cc>menard</cc>
    
    <cc>ojan</cc>
    
    <cc>svillar</cc>
    
    <cc>tabatkins</cc>
    
    <cc>tony</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>789626</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2012-12-12 09:21:36 -0800</bug_when>
    <thetext>If you try to get back the grid-rows / grid-columns from JS using Element.style, the values are not right. For example, with minmax:

element = document.createElement(&quot;div&quot;);
document.body.appendChild(element);
element.style.font = &quot;10px Ahem&quot;;
element.style.webkitGridColumns = &quot;minmax(22em, 8vh)&quot;;
element.style.webkitGridRows = &quot;minmax(10vw, 5em)&quot;;
alert(element.style.webkitGridColumns); // &quot;22em 8vh&quot;
alert(element.style.webkitGridRows); // &quot;10vw 5em&quot;

It&apos;s unclear to me what we _should_ return though but those are definitely wrong. Also we have no coverage for getting back using Element.style which explains why we missed it. Whoever takes this bug should ensure a good coverage for most scenarios.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>953166</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2013-11-21 10:41:58 -0800</bug_when>
    <thetext>This was already fixed and properly covered by multiple tests. Just to mention some

fast/css-grid-layout/grid-columns-rows-get-set.html
fast/css-grid-layout/grid-columns-rows-get-set-multiple.html
fast/css-grid-layout/named-grid-line-get-set.html
fast/css-grid-layout/grid-auto-columns-rows-get-set.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>