<?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>247829</bug_id>
          
          <creation_ts>2022-11-11 15:51:35 -0800</creation_ts>
          <short_desc>MouseClick offsetX/offsetY different between Safari 15.5 and Safari 16</short_desc>
          <delta_ts>2022-11-14 23:39:48 -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>UI Events</component>
          <version>Other</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="Richard Robinson">richard_robinson2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911916</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Robinson">richard_robinson2</who>
    <bug_when>2022-11-11 15:51:35 -0800</bug_when>
    <thetext>When a foreign object is inside an SVG, any click event that occurs on the object has it&apos;s `offsetX` and `offsetY` relative to the SVG container rather than the element.

Believed to be a regression from https://bugs.webkit.org/show_bug.cgi?id=234524 , which overrode `offsetFromContainer` in `RenderSVGBlock`, causing the `RenderSVGForeignObject`
to use this override and return an offset of `(0, 0)` instead of its proper offset.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911917</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Robinson">richard_robinson2</who>
    <bug_when>2022-11-11 15:51:42 -0800</bug_when>
    <thetext>rdar://100517677</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912050</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Robinson">richard_robinson2</who>
    <bug_when>2022-11-12 19:37:03 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6436</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912463</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-14 16:24:49 -0800</bug_when>
    <thetext>Committed 256679@main (d5fba35fb6c5): &lt;https://commits.webkit.org/256679@main&gt;

Reviewed commits have been landed. Closing PR #6436 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912541</commentid>
    <comment_count>4</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2022-11-14 23:39:48 -0800</bug_when>
    <thetext>Thanks! I had a PR open which also fixes offsetFromContainer(), good it is fixed already.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>