<?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>17621</bug_id>
          
          <creation_ts>2012-06-28 02:02:58 +0000</creation_ts>
          <short_desc>Can &quot;height&quot;  automatically occupy the remaining space of parent DOM?</short_desc>
          <delta_ts>2012-06-28 02:02:58 +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>Positioned Layout</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Yang Sun">eric.sun</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69467</commentid>
    <comment_count>0</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-06-28 02:02:58 +0000</bug_when>
    <thetext>Hi CSS guys:

let me assume that parent DOM has three child DOM which are a, b, c

&lt;div id=&quot;parent&quot; style=&quot;height:300px;&quot;&gt;
       &lt;div id=&quot;child a&quot; style=&quot;height:30px;&quot;&gt;&lt;/div&gt;
       &lt;div id=&quot;child b&quot;style=&quot;height:100%;&quot;&gt;&lt;/div&gt;
        &lt;div id=&quot;child c&quot; style=&quot;height:60px;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

if we declare style like above, the div b&apos;s height will be 300px the same with div parent, and the total height of a+b+c will e 390px, which will exceed parent dom&apos;s height 300px.

I want to propose that, can we let height not equal to parent DOM&apos;s height, but equal to parent DOM&apos;s remaining height, which in this example will be &quot;300-30-60&quot; px.

comments and suggestions are welcome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>