<?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>226500</bug_id>
          
          <creation_ts>2021-06-01 08:32:03 -0700</creation_ts>
          <short_desc>click focus prevented on button which changes it&apos;s z-index on focus (by tabbing): Focus moving to great grandparent.</short_desc>
          <delta_ts>2021-06-01 17:29:48 -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 14</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="Kim">kdunagan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>graouts</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1765621</commentid>
    <comment_count>0</comment_count>
    <who name="Kim">kdunagan</who>
    <bug_when>2021-06-01 08:32:03 -0700</bug_when>
    <thetext>On Safari version 14.0.3 (15610.4.3.1.7, 15610)
MacOS Catalina (10.15.7) MacBook Pro

This bug pertains to an element that changes it&apos;s stacking context with the z-index (or any other safari related tricks to modify stacking). 

When a button changes its z-index on focus (ie by tabbing to it), a user can no longer click the button to trigger onclick effects. Any clicks to that button are being redirected to a parent, or some great-grandparent.


Here&apos;s a codepen of the issue
https://codepen.io/Kiyriel/pen/wvJpYXz

Background:
delete button is underneath the Hello link

Steps to reproduce:
1. Tab to the delete button
2. Click on the now visible delete button

Expected results: an alert saying &quot;Success! You&apos;ve clicked the delete button&quot; is shown.

Actual results: an alert saying &quot;Failure....rail....registered the click&quot;

Additional notes: Does not affect Firefox (88.0.1 (64-bit))or chrome (90.0.4430.212 (Official Build) (x86_64))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1765622</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-01 08:32:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/78715624&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>