<?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>266464</bug_id>
          
          <creation_ts>2023-12-15 00:53:37 -0800</creation_ts>
          <short_desc>mousedown is lost when clicking on the resize corner of an element with the resize CSS rule set</short_desc>
          <delta_ts>2025-06-04 17:41:56 -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>UI Events</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>280956</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artur Signell">artur</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>a_protyasha</cc>
    
    <cc>karlcow</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1999842</commentid>
    <comment_count>0</comment_count>
    <who name="Artur Signell">artur</who>
    <bug_when>2023-12-15 00:53:37 -0800</bug_when>
    <thetext>A mousedown event on the resize corner of an element with e.g. `resize: both` can be used to know that a resizing operation has started. In Chrome and Firefox, the mousedown is fired normally when you start resizing the element. In Safari, there is no mousedown event ever.

See https://jsfiddle.net/7dygb36k/11/

If you click inside the element, it logs &quot;mousedown&quot;, &quot;mouseup&quot;, &quot;click&quot; as expected
If you click on the resize corner, it logs &quot;mouseup&quot;, &quot;click&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000153</commentid>
    <comment_count>1</comment_count>
    <who name="Artur Signell">artur</who>
    <bug_when>2023-12-15 23:47:35 -0800</bug_when>
    <thetext>Seems pretty clear from the code here https://github.com/WebKit/WebKit/blob/931edb0a5a560a009a8ca6a23f39aa4bff6d6a5a/Source/WebCore/page/EventHandler.cpp#L1900-L1915 that mousedown is not fired</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001564</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-22 00:54:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/120034785&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121823</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-06-04 17:41:56 -0700</bug_when>
    <thetext>Works now post https://commits.webkit.org/295846@main.

*** This bug has been marked as a duplicate of bug 280956 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>