<?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>16072</bug_id>
          
          <creation_ts>2012-02-22 08:30:01 +0000</creation_ts>
          <short_desc>Margin collapsing: clarification needed as to where a collapsed margin manifests itself</short_desc>
          <delta_ts>2012-12-04 00:51:05 +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>64405</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-02-22 08:30:01 +0000</bug_when>
    <thetext>Reported by Anton Prowse

The spec currently says that the bottom margins collapse for an auto-height, non-BFC parent with large min-height and a last in-flow non-self-collapsing child, even when the parent&apos;s used height is larger than the total height of all of its content and its last child&apos;s bottom margin.  The WG feels that this is acceptable behaviour because the alternatives are worse in a world without partial margin collapsing.  (See Bug 16037.)

However, nothing in the spec indicates where the collapsed margin should manifest itself.  (See also Bug 15894 - Position of top content edge of non-replaced block-level elements is not clearly defined.)  This problem has always existed, although in most cases it&apos;s intuitive that the collapse margin should manifest itself outside the parent&apos;s border box.  However, in the case described above, it&apos;s less intuitive, since one could argue that the collapsed margin might manifest itself immediately outside the /child&apos;s/ border box, for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64406</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-02-22 08:41:20 +0000</bug_when>
    <thetext>It was generally agreed in the F2F in Paris 2012 [http://lists.w3.org/Archives/Public/www-style/2012Feb/0529.html] that the collapsed margin should manifest itself outside the parent&apos;s border box.  I don&apos;t see a suitable place in 8.3.1 to mention this, and it&apos;s not really within the remit of 8.3.1 to describe /how/ to use the resulting collapsed margin.  Instead, I propose the following change to 9.4.1 (Block formatting contexts).

Proposal:

In 9.4.1, in the following paragraph:

  # In a block formatting context, boxes are laid out one after the
  # other, vertically, beginning at the top of a containing block. The 
  # vertical distance between two sibling boxes is determined by the
  # &apos;margin&apos; properties. Vertical margins between adjacent block-level
  # boxes in a block formatting context collapse.

change the last sentence as follows:

  | Vertical margins between adjacent block-level boxes in a block
  | formatting context &lt;ins&gt;typically&lt;/ins&gt; collapse&lt;ins&gt;, and the
  | collapsed margin manifests itself outside of the border areas of
  | all the boxes that have precisely one margin which participates in
  | the collapsed margin&lt;/ins&gt;.


[Note that it&apos;s not true in general that a collapsed margin lump lies outside of the (zero-height) border box of self-collapsing elements.  I added the word &quot;typically&quot; because there are clearly various cases where margins don&apos;t collapse.]

The resulting paragraph can then be rewritten with more accuracy in css3-box.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>