<?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>15671</bug_id>
          
          <creation_ts>2012-01-22 19:56:22 +0000</creation_ts>
          <short_desc>Should anonymous blocks be able to establish containing blocks?</short_desc>
          <delta_ts>2012-12-04 00:54:17 +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>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</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="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62989</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-22 19:56:22 +0000</bug_when>
    <thetext>Discussed by Boris Zbarsky, Bert Bos

Boris raises the example:
   &lt;div id=&quot;outer&quot;&gt;
     &lt;div id=&quot;row&quot; style=&quot;display: table-row&quot;&gt;
       &lt;div id=&quot;inner&quot;/&gt;
     &lt;/div&gt;
   &lt;/div&gt;
and says that the proposed wording makes the &quot;outer&quot; div the containing block of the &quot;inner&quot; one, whereas the desired containing block, and the one all UAs 
use in practice, is the content edge of the anonymous table-cell box 
generated between the table-row and the &quot;inner&quot; block.

Bert disputes that this should be the case, claiming that the anonymous table cell isn&apos;t a good choice for a containing block because you cannot put 
properties on it.  He counters with:
    &lt;div id=outer style=&quot;height: 20em&quot;&gt;
      Some text &lt;button style=&quot;height: 50%&quot;&gt;before&lt;/button&gt; the image.
      &lt;img src=&quot;x.png&quot; alt=&quot;x&quot; style=&quot;display: block&quot;&gt;
    &lt;/div&gt;
in which the text is wrapped in an anonymous block box; he thinks that the height of the BUTTON should be 50% of the &quot;outer&quot; element, not of that anonymous box.

Discussion:
http://lists.w3.org/Archives/Public/www-style/2010Aug/0443.html
http://lists.w3.org/Archives/Public/www-style/2010Oct/0042.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62993</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-22 20:08:33 +0000</bug_when>
    <thetext>I&apos;m not sure that the counter-example is pertinent.  9.2.1 says:

  # Anonymous block boxes are ignored when resolving percentage values
  # that would refer to it: the closest non-anonymous ancestor box is
  # used instead. For example, if the child of the anonymous block box
  # inside the DIV above needs to know the height of its containing block
  # to resolve a percentage height, then it will use the height of the
  # containing block formed by the DIV, not of the anonymous block box.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>