<?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>6586</bug_id>
          
          <creation_ts>2009-02-16 10:46:04 +0000</creation_ts>
          <short_desc>Zero margin quirk not quite right</short_desc>
          <delta_ts>2010-10-04 13:57:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23768</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2009-02-16 10:46:04 +0000</bug_when>
    <thetext>The spec says in the rendering section

&quot;When a Document is in quirks mode, margins on HTML elements that collapse with the top or bottom of the initial containing block, or the top of bottom of td or th elements, are expected to be collapsed to zero.&quot;

I see the zero-margin effect also when I set a border on body or th/td. Margins don&apos;t collapse when there&apos;s a border, so the spec is not in effect in that case, AFAICT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24448</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2009-03-31 06:23:09 +0000</bug_when>
    <thetext># [08:20] &lt;zcorpan&gt; Hixie: you can have a border on body, too, and the margins will collapse  
# [08:21] &lt;zcorpan&gt; Hixie: actually... if you specify p { margin:1em 0 } in the style sheet, then margins *don&apos;t* collapse  
# [08:21] &lt;Hixie&gt; -&gt; mail or bugs please :-)  
# [08:21] &lt;Hixie&gt; and it actually depends on the UA, last i checked  
# [08:21] &lt;Hixie&gt; webkit uses a special unit  
# [08:22] &lt;Hixie&gt; (iirc that was my idea)  
# [08:22] &lt;Hixie&gt; not sure about the other UAs  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25358</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-05-29 08:36:26 +0000</bug_when>
    <thetext>I need to change the mention of the ICB to &lt;body&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25374</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-05-30 03:50:01 +0000</bug_when>
    <thetext>done</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>