<?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>16226</bug_id>
          
          <creation_ts>2012-03-04 10:55:11 +0000</creation_ts>
          <short_desc>Margin collapsing: Clarify Note in 8.3.1 to use computed values of properties</short_desc>
          <delta_ts>2012-12-04 00:51: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>64990</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-03-04 10:55:11 +0000</bug_when>
    <thetext>Reported by Anton Prowse

8.3.1 says, in the long Note:

  # - The bottom margin of an in-flow block box with a &apos;height&apos;
  #   of &apos;auto&apos; and a &apos;min-height&apos; of zero collapses with its
  #   last in-flow block-level child&apos;s bottom margin if the box
  #   has no bottom padding and no bottom border and the child&apos;s
  #   bottom margin does not collapse with a top margin that has
  #   clearance.
  # - 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.

The values in question of the &apos;height&apos; and &apos;min-height&apos; properties are *computed* values, but this is not clear in the prose.

Now, the spec often fails to be explicit about values being computed values, and this part of 8.3.1 is just a Note, and the normative prose in 8.3.1 (of which the Note is just a summary of consequences) is explicit in its use of computed values.  So this bug does not have especially high importance.

However, the distinction of whether it&apos;s the used value or the computed value of &apos;height&apos; used in 8.3.1 is important to the application of &apos;min-height&apos; and &apos;max-height&apos; in 10.7, and so clarifying the Note above would remove a potential, albeit small, source of confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64991</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-03-04 10:58:03 +0000</bug_when>
    <thetext>Conversation begins: http://lists.w3.org/Archives/Public/www-style/2012Feb/1153.html

Bug description: http://lists.w3.org/Archives/Public/www-style/2012Feb/1342.html (penultimate part)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64992</commentid>
    <comment_count>2</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-03-04 10:59:16 +0000</bug_when>
    <thetext>See Bug 15746 and Bug 15745 which describe another issues with the note mentioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64993</commentid>
    <comment_count>3</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-03-04 11:02:16 +0000</bug_when>
    <thetext>Proposal:

Replace:

  # - The bottom margin of an in-flow block box with a &apos;height&apos;
  #   of &apos;auto&apos; and a &apos;min-height&apos; of zero collapses with its
  #   last in-flow block-level child&apos;s bottom margin if the box
  #   has no bottom padding and no bottom border and the child&apos;s
  #   bottom margin does not collapse with a top margin that has
  #   clearance.
  # - 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.

with:

  | - The bottom margin of an in-flow block box with a computed
  |   &apos;height&apos; of &apos;auto&apos; and a computed &apos;min-height&apos; of zero
  |   collapses with its last in-flow block-level child&apos;s bottom
  |   margin if the box has no bottom padding and no bottom
  |   border and the child&apos;s bottom margin does not collapse
  |   with a top margin that has clearance.
  | - A box&apos;s own margins collapse if it has a computed
  |   &apos;min-height&apos; of zero, and it has neither top or bottom
  |   borders nor top or bottom padding, and it has a computed
  |   &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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>