<?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>301033</bug_id>
          
          <creation_ts>2025-10-18 05:45:46 -0700</creation_ts>
          <short_desc>mouse/pointer event target is `&lt;img&gt;` rather than `&lt;area&gt;` on image map</short_desc>
          <delta_ts>2025-10-25 05:46:10 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=15035</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="Masayuki Nakano">masayuki</reporter>
          <assigned_to name="Abrar Rahman Protyasha">a_protyasha</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2152331</commentid>
    <comment_count>0</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2025-10-18 05:45:46 -0700</bug_when>
    <thetext>When you over mouse cursor over a shape of an `&lt;area&gt;` on an image map, Safari targets the `&lt;img&gt;` for mouse/pointer events. However, the other browsers target the corresponding `&lt;area&gt;`.

There is no definition in any standards about this case so that I filed a spec issue:
https://github.com/w3c/uievents/issues/404

And I added WPTs about this and when the image map definition is changed while the mouse cursor is over the image map:
* https://wpt.fyi/results/uievents/mouse/mouse_boundary_events_on_image_map.html?label=experimental&amp;label=master&amp;aligned
* https://wpt.fyi/results/pointerevents/pointerevent_boundary_events_on_image_map.html?label=experimental&amp;label=master&amp;aligned

This may be a dup of bug 15035.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154236</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-25 05:46:10 -0700</bug_when>
    <thetext>&lt;rdar://problem/163399651&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>