<?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>284227</bug_id>
          
          <creation_ts>2024-12-07 06:20:16 -0800</creation_ts>
          <short_desc>Content clipped by Mask Image is still clickable</short_desc>
          <delta_ts>2025-02-18 13:52:36 -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>Safari 18</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Rhomberg">paulrhomberg01</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a_protyasha</cc>
    
    <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tevo+webkit</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2079898</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Rhomberg">paulrhomberg01</who>
    <bug_when>2024-12-07 06:20:16 -0800</bug_when>
    <thetext>Hi everyone!
In Safari, elements that are being clipped by &quot;Mask-Image&quot; with &quot;Mask-Composite: Intersect&quot; are still clickable, even if they are not visible. 

In Firefox and Chromium, these elements are not clickable. Therefore, I assume this could be a bug.

Here is a Codepen that reproduces this issue: https://codepen.io/therealpaulplay/pen/wBwGdXX
Try clicking on the elements that exist below the white fade, you will see that the hover effect displays and that on click, the alert shows, whereas in Chrome and Firefox, this does not happen. 

The reason this could be a rather critical bug is because on some sites, where this effect is being used, you cannot click on elements that show up below the clip, as the click event
would instead be sent to the clipped of elements. Putting overflow: hidden or overflow: clip on the container with the mask-image is an easy &quot;fix&quot; in the meantime. 

I hope this will be fixed, have a nice Christmas time y&apos;all :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2080316</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2024-12-09 13:51:23 -0800</bug_when>
    <thetext>Raised at https://github.com/w3c/csswg-drafts/issues/11339</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081789</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-14 06:21:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/141486297&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095582</commentid>
    <comment_count>3</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2025-02-18 13:52:36 -0800</bug_when>
    <thetext>*** Bug 287510 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>