<?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>233917</bug_id>
          
          <creation_ts>2021-12-07 01:28:45 -0800</creation_ts>
          <short_desc>HTML elements with tiny scales are rendered but not clickable.</short_desc>
          <delta_ts>2023-04-20 10:42: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>Safari 15</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Herzog">michael.herzog</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>hi</cc>
    
    <cc>mattwoodrow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1820936</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Herzog">michael.herzog</who>
    <bug_when>2021-12-07 01:28:45 -0800</bug_when>
    <thetext>The three.js project provides a renderer for representing simple 3D scenes via HTML/CSS by using properties like &quot;transform&quot; or &quot;perspective&quot;.

A user reported us that small scaled HTML elements are correctly rendered but it&apos;s not possible to receive pointer events when attaching event listeners (see https://github.com/mrdoob/three.js/issues/22964).

I&apos;ve isolated the issue in a small HTML/CSS only live example: https://jsfiddle.net/9yposagq/2/

You have to find the small red rectangle in the viewport first. Latest Chrome or Firefox detect a click on the rectangle but not Safari.

The transformation matrix used in the demo is: matrix3d(0.002, 0, 0, 0, 0, 0.002, 0, 0, 0, 0, 0.002, 0, 0, 0, 0, 1);

Interesetingly, if you slightly increase 0.002 to 0.003, the problems disappears. It seems there is some sort of treshold or rounding in place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1823935</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-14 01:29:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/86457036&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>