<?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>249207</bug_id>
          
          <creation_ts>2022-12-12 22:28:10 -0800</creation_ts>
          <short_desc>[margin-trim] Implement margin trims for floats within block containers that establish block formatting context</short_desc>
          <delta_ts>2023-02-15 10:29:11 -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>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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sammy Gill">sgill26</reporter>
          <assigned_to name="Sammy Gill">sgill26</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1918732</commentid>
    <comment_count>0</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2022-12-12 22:28:10 -0800</bug_when>
    <thetext>It also affects floats for which the block container is a containing block by:

- Discarding the block-start margin of any float whose block-start outer edge coincides with the block-start inner edge of the container.
- Discarding the inline-start/inline-end margin of an inline-start/inline-end float (or equivalent) whose outer edge on that side coincides with the inner edge of the container.
- Zeroing the inline-axis margins of a float for the purpose of calculating its intrinsic size contributions or its size in the container’s inline axis.
- Trimming the block-end margins of a float to the extent necessary to prevent such a margin from extending the block size of a block formatting context root.

https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-block</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918733</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-12 22:29:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/103285803&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928062</commentid>
    <comment_count>2</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-01-24 22:27:51 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8910</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928332</commentid>
    <comment_count>3</comment_count>
    <who name="Sammy Gill">sgill26</who>
    <bug_when>2023-01-25 16:48:18 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9145</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933867</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-15 10:29:05 -0800</bug_when>
    <thetext>Committed 260318@main (f679766e27a1): &lt;https://commits.webkit.org/260318@main&gt;

Reviewed commits have been landed. Closing PR #8910 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>