<?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>194192</bug_id>
          
          <creation_ts>2019-02-02 06:09:30 -0800</creation_ts>
          <short_desc>margin of a child is not collapsed at the end of a height:100% element</short_desc>
          <delta_ts>2022-07-01 15:48:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Xidorn Quan">xidorn-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>emilio</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1501488</commentid>
    <comment_count>0</comment_count>
      <attachid>360977</attachid>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-02-02 06:09:30 -0800</bug_when>
    <thetext>Created attachment 360977
testcase

Open the attached testcase. The margin should be outside the box due to margin collapse.

This happens when the container has height:100%, but doesn&apos;t when it&apos;s height:auto. Per spec, it doesn&apos;t make sense.

This is filed as a webcompat issue to Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1524656

I have also filed a bug to Blink: https://bugs.chromium.org/p/chromium/issues/detail?id=928027</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880230</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-01 15:48:54 -0700</bug_when>
    <thetext>We match Chrome behavior in macOS 13 (and probably previous to that).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>360977</attachid>
            <date>2019-02-02 06:09:30 -0800</date>
            <delta_ts>2019-02-02 06:09:30 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>1524656.html</filename>
            <type>text/html</type>
            <size>353</size>
            <attacher name="Xidorn Quan">xidorn-webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPG1ldGEgY2hhcnNldD0iVVRGLTgiPgo8c3R5
bGU+CiAgaHRtbCB7IG91dGxpbmU6IDFweCBkb3R0ZWQgYmx1ZTsgfQogIC5oZWlnaHQgeyBoZWln
aHQ6IDEwMCU7IG91dGxpbmU6IDFweCBzb2xpZCAjMDAwOyB9CiAgLm1hcmdpbmJvdHRvbSB7IG1h
cmdpbjogMjBweDsgfQo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogIDxkaXYgY2xhc3M9ImhlaWdo
dCI+CiAgICA8ZGl2IGNsYXNzPSJtYXJnaW5ib3R0b20iPkNocm9tZSBzaG93cyAyMHB4IG1hcmdp
biB1bmRlciB0aGlzIHRleHQsIEZpcmVmb3ggZG9lcyBub3QuPC9kaXY+CiAgPC9kaXY+CjwvYm9k
eT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>