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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16906</bug_id>
          
          <creation_ts>2012-05-02 03:43:33 +0000</creation_ts>
          <short_desc>Resolved values (getComputedStyle) of grid-rows / grid-columns should not depend on layout or the element&apos;s children</short_desc>
          <delta_ts>2014-04-18 16:41:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Grid Layout</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Phil Cupp">pcupp</assigned_to>
          <cc>fantasai.bugs</cc>
    
    <cc>jackalmage</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67231</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2012-05-02 03:43:33 +0000</bug_when>
    <thetext>The CSS3 Grid ED currently says this about the grid-rows &amp; grid-columns properties&apos; computed style:
# 6.5.2. Computed Values for Grid-rows and Grid-columns
#
# The computed size of all Grid tracks as returned for the ‘grid-rows’ and
# ‘grid-columns’ properties are normalized to used pixel values. All Grid
# tracks are included in the computed value reported for ‘grid-rows’ and
# ‘grid-columns’ regardless of how the Grid tracks were created, e.g.
# implicit tracks may be created by Grid items referencing a Grid line not
# explicitly defined by a ‘grid-rows’ or ‘grid-columns’ property.

http://dev.w3.org/csswg/css3-grid-layout/#computed-values-for-grid-rows-and-grid-c

So: that defines the computed style of these properties in such a way that they depend on the children&apos;s computed styles.  (the grid items)

That&apos;s problematic -- per CSS21 &quot;Computed values&quot; definition, the computed value never requires layout and is also what gets inherited (so it&apos;s a bit circular to have it influenced by the children).

http://www.w3.org/TR/CSS21/cascade.html#computed-value
http://www.w3.org/TR/CSS21/cascade.html#inheritance

I believe this chunk of the CSS Grid spec intends to refer to the &quot;Used value&quot;, not the &quot;Computed value&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67232</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2012-05-02 03:54:13 +0000</bug_when>
    <thetext>From discussing this with Phil / Markus / fantasai today, I believe the intention was that this chunk of spec is supposed to be about &quot;the value returned by getComputedStyle&quot;.  Note that getComputedStyle sometimes returns &quot;used values&quot; and sometimes returns &quot;computed values&quot;, as noted here:
   http://lists.w3.org/Archives/Public/www-style/2010Feb/0093.html

I&apos;m not sure how kosher it is for CSS3-grid to define specifically what it wants getComputedStyle to return for a particular property, though (or how useful that&apos;d be in this case, for that matter).

Perhaps this chunk of the spec can just be dropped?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67233</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2012-05-02 03:58:29 +0000</bug_when>
    <thetext>(assuming this should be assigned to Phil)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104079</commentid>
    <comment_count>3</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2014-04-18 16:41:04 +0000</bug_when>
    <thetext>This has been resolved as WONTFIX, since MSFT has use cases and dependent content on getComputedStyle returning the used values of these properties.

However, the spec has been clarified to use the correct terminology for that, and not conflate resolved and computed values.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>