<?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>15745</bug_id>
          
          <creation_ts>2012-01-27 18:08:35 +0000</creation_ts>
          <short_desc>Margin collapsing: overflow:hidden boxes no longer self-collapse</short_desc>
          <delta_ts>2012-12-04 00:53:06 +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>63192</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-27 18:08:35 +0000</bug_when>
    <thetext>Reported by Anton Prowse

8.3.1 (Collapsing margins) says:

  # Two margins are adjoining if and only if:
  # [omitted conditions]
  # * both belong to vertically-adjacent box edges, i.e. form one of
  # the following pairs:
  # [omitted pairs]
  # - top and bottom margins of a box that does not establish
  # a new block formatting context and that has zero computed
  # &apos;min-height&apos;, zero or &apos;auto&apos; computed &apos;height&apos;, and no
  # in-flow children

Since boxes with &apos;overflow&apos; other than &apos;visible&apos; establish block formatting contexts, they are excluded in the latter point and hence their top and bottom margins cannot collapse.  Hence the later note in 8.3.1,

  # A box&apos;s own margins collapse if the &apos;min-height&apos; property is zero, and
  # it has neither top or bottom borders nor top or bottom padding, and it
  # has a &apos;height&apos; of either 0 or &apos;auto&apos;, and it does not contain a line box,
  # and all of its in-flow children&apos;s margins (if any) collapse.

which was lifted directly from older versions of the spec, does not accurately reflect what the spec says normatively in the quoted item above.  Hence the current spec is not compatible with earlier versions; is this change intentional?

See: http://lists.w3.org/Archives/Public/www-style/2010Sep/0698.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63194</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-27 18:13:59 +0000</bug_when>
    <thetext>See also Bug 15746 which describes another conflict with the note mentioned.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>