<?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>294570</bug_id>
          
          <creation_ts>2025-06-16 11:15:54 -0700</creation_ts>
          <short_desc>Hit-testing should use a device-pixel size bounding box</short_desc>
          <delta_ts>2025-06-23 11:16:17 -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=294571</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Abrar Rahman Protyasha">a_protyasha</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2124018</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-06-16 11:15:54 -0700</bug_when>
    <thetext>HitTestLocation currently makes a 1px box with the location at its top-left for hit-testing. That results in coarser hit-test that necessary. I think we should use a device-pixel sized box.

This becomes more relevant when we allow device-pixel accuracy for pointer events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124022</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-06-16 11:19:22 -0700</bug_when>
    <thetext>This affects fast/frames/iframe-subpixel-hit-test.html which I am adding for bug 294571.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124064</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-06-16 14:37:15 -0700</bug_when>
    <thetext>We should also make imported/w3c/web-platform-tests/css/css-transforms/transform-scale-hittest.html pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124067</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-06-16 14:42:23 -0700</bug_when>
    <thetext>We probably need something like https://chromium.googlesource.com/chromium/src.git/+/c47a6f0b4a592c2383fb553b6169f89ab01d851d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124115</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-06-16 20:23:20 -0700</bug_when>
    <thetext>Simon - I tried it here - https://github.com/WebKit/WebKit/pull/37975/files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125287</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-23 11:16:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/154111494&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>