<?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>264625</bug_id>
          
          <creation_ts>2023-11-10 15:05:00 -0800</creation_ts>
          <short_desc>RenderBox::applyVisualEffectOverflow() and RenderBox::outlineBoundsForRepaint() use different ways of computing outline/shadow extent</short_desc>
          <delta_ts>2023-11-28 18:35:27 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258740</see_also>
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <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>1991703</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-11-10 15:05:00 -0800</bug_when>
    <thetext>RenderBox::applyVisualEffectOverflow() and RenderBox::outlineBoundsForRepaint() have different logic for combining outline/shadow extents, and give different answers on an element like:

        .box {
            margin: 30px;
            width: 50%;
            height: 500px;
            border: 12px solid gray;
            outline: 5px solid green;
            box-shadow: 0 0 0px 20px black;
        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991704</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-11-10 15:05:25 -0800</bug_when>
    <thetext>RenderBox 0x138003430 outlineBoundsForRepaint - outline bounds (-25,-25) width=225 height=574 bigger than visual overflow (-20,-20) width=215 height=564</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991707</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-11-10 15:11:35 -0800</bug_when>
    <thetext>These should give the same result:

    applyVisualEffectOverflow(borderBoxRect())

and

    LayoutRect box = borderBoundingBox();
    adjustRectForOutlineAndShadow(box);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993589</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-17 15:05:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/118582062&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995114</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-11-27 16:20:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995499</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-28 18:35:25 -0800</bug_when>
    <thetext>Committed 271254@main (6aa1f6767674): &lt;https://commits.webkit.org/271254@main&gt;

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

    </bug>

</bugzilla>