<?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>266383</bug_id>
          
          <creation_ts>2023-12-13 17:48:52 -0800</creation_ts>
          <short_desc>[Filters] GraphicsContext filters have to apply clipping to the target context before drawing</short_desc>
          <delta_ts>2023-12-14 15:35:01 -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="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</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>1999451</commentid>
    <comment_count>0</comment_count>
      <attachid>469030</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-12-13 17:48:52 -0800</bug_when>
    <thetext>Created attachment 469030
test case

Open the attached test case.

Result: The green rectangle with the drop shadow filter is not clipped to its parent bounding box.
Note: The green rectangle has to be clipped to its parent bounding box since the parent has overflxow: hidden in its style.

The bug is not reproduced if &quot;GraphicContext Filter Rendering&quot; is disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999452</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-12-13 17:49:10 -0800</bug_when>
    <thetext>rdar://118522654</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999453</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-12-13 18:04:05 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21775</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999743</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-14 15:34:49 -0800</bug_when>
    <thetext>Committed 272078@main (ddf4bec3e947): &lt;https://commits.webkit.org/272078@main&gt;

Reviewed commits have been landed. Closing PR #21775 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>469030</attachid>
            <date>2023-12-13 17:48:52 -0800</date>
            <delta_ts>2023-12-13 17:48:52 -0800</delta_ts>
            <desc>test case</desc>
            <filename>drop-shadow-filter-overflow.html</filename>
            <type>text/html</type>
            <size>505</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlPgogICAgLmNvbnRhaW5lciB7CiAgICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAg
ICAgIGxlZnQ6IDEwcHg7CiAgICAgICAgdG9wOiAxMHB4OwogICAgICAgIGhlaWdodDogMjAwcHg7
CiAgICAgICAgd2lkdGg6IDIwMHB4OwogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAg
Ym9yZGVyOiAxcHggZ3JlZW4gc29saWQ7CiAgICB9CiAgICAuYm94IHsKICAgICAgICBwb3NpdGlv
bjogYWJzb2x1dGU7CiAgICAgICAgbGVmdDogMTAwcHg7CiAgICAgICAgdG9wOiAxNTBweDsKICAg
ICAgICB3aWR0aDogMTAwcHg7CiAgICAgICAgaGVpZ2h0OiAxMDBweDsKICAgICAgICBiYWNrZ3Jv
dW5kOiBncmVlbjsKICAgICAgICBmaWx0ZXI6IGRyb3Atc2hhZG93KGJsYWNrIDEwcHggMTBweCAw
cHgpOwogICAgfQo8L3N0eWxlPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImNvbnRhaW5lciI+CiAg
ICAgICAgPGRpdiBjbGFzcz0iYm94Ij48L2Rpdj4KICAgIDwvZGl2Pgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>