<?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>15774</bug_id>
          
          <creation_ts>2012-01-29 17:55:35 +0000</creation_ts>
          <short_desc>Over-simplification in description of how clearance acts as spacing above top margin</short_desc>
          <delta_ts>2012-12-04 00:54:32 +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>63286</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-29 17:55:35 +0000</bug_when>
    <thetext>Reported by Anton Prowse

9.5.2 (&apos;clear&apos;) says:

  # Clearance inhibits margin collapsing and acts as spacing above
  # the margin-top of an element. It is used to push the element
  # vertically past the float.

The problem is that the top margin edge of an element is not defined in CSS when that margin participates in margin collapsing.  (See Bug 15748.)

Consider the following example:

&lt;div style=&quot;clear:both; margin-top:0&quot;&gt;
	&lt;p style=&quot;margin-top:20px&quot;&gt;text&lt;/p&gt;
&lt;/div&gt;

In the presence of floats, clearance is introduced as spacing above the
div, specifically at 20px above the div&apos;s top border edge (at the top of the collapsed margin lump), not 0px above the div&apos;s top border edge (which is where one might naively claim its top margin edge to be).

If we do not define the position of the top margin edge, we need to rewrite the description of how clearance acts.


Bug description: http://lists.w3.org/Archives/Public/www-style/2010Aug/0259.html (last part)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>