<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>11785</bug_id>
          
          <creation_ts>2006-12-08 12:20:34 -0800</creation_ts>
          <short_desc>:last-child clobbers bottom margin</short_desc>
          <delta_ts>2006-12-08 12:53:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>419.x</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5468</dup_id>
          
          <bug_file_loc>http://darwinweb.net/article/Safari_Margin_Bug</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Gabe da Silveira">gabe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42777</commentid>
    <comment_count>0</comment_count>
    <who name="Gabe da Silveira">gabe</who>
    <bug_when>2006-12-08 12:20:34 -0800</bug_when>
    <thetext>If a block has a last-child selector with a bottom margin, the block&apos;s own bottom margin will not be considered for the collapsing margins even if it is larger than any of the other candidate margins.

Note that this behaviour is not always apparent and can be corrected by changing the font size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42774</commentid>
    <comment_count>1</comment_count>
      <attachid>11776</attachid>
    <who name="Gabe da Silveira">gabe</who>
    <bug_when>2006-12-08 12:40:20 -0800</bug_when>
    <thetext>Created attachment 11776
HTML/CSS test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42769</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-12-08 12:53:32 -0800</bug_when>
    <thetext>:last-child is seriously broken in WebKit, and in fact matches all children, as one can see by adding &apos;background: red;&apos; to the .bar:last-child rule in the test case at http://darwinweb.net/content/safari-last-child-margin-bug.html

*** This bug has been marked as a duplicate of 5468 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11776</attachid>
            <date>2006-12-08 12:40:20 -0800</date>
            <delta_ts>2006-12-08 12:40:20 -0800</delta_ts>
            <desc>HTML/CSS test case</desc>
            <filename>safari-last-child-margin-bug.html</filename>
            <type>text/html</type>
            <size>631</size>
            <attacher name="Gabe da Silveira">gabe</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIKICAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtdHJhbnNpdGlv
bmFsLmR0ZCI+CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6
bGFuZz0iZW4iIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAg
IHAgewogICAgICBtYXJnaW4tYm90dG9tOiAxMHB4OwogICAgfQogICAgLmJhcjpsYXN0LWNoaWxk
IHsKICAgICAgYmFja2dyb3VuZDogI2NjYzsKICAgICAgbWFyZ2luLWJvdHRvbTogMjVweDsKICAg
IH0KICAgIC5iYXIgewogICAgICBiYWNrZ3JvdW5kOiAjOTc5RkE4OwogICAgICBtYXJnaW4tYm90
dG9tOiA1MHB4OwogICAgfQogIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgPGRpdiBjbGFzcz0i
Zm9vIj4KICAgIDxkaXYgY2xhc3M9ImJhciI+CiAgICAgIDxwPlBhcmFncmFwaCAxPC9wPiAgCiAg
ICAgIDxwPlBhcmFncmFwaCAyPC9wPgogICAgPC9kaXY+CgogICAgPGRpdiBjbGFzcz0iYmFyIj4K
ICAgICAgPHA+UGFyYWdyYXBoIDM8L3A+CiAgICA8L2Rpdj4KICA8L2Rpdj4KPC9ib2R5Pgo8L2h0
bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>