<?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>251728</bug_id>
          
          <creation_ts>2023-02-03 16:42:42 -0800</creation_ts>
          <short_desc>Focus moves to items in a closed details element with tabindex=0</short_desc>
          <delta_ts>2024-03-15 04:33:25 -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>Accessibility</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>
          
          <blocked>252223</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="James Nurthen">nurthen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>andresg_22</cc>
    
    <cc>aroselli</cc>
    
    <cc>karlcow</cc>
    
    <cc>kodiane</cc>
    
    <cc>mike</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit.org</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1931045</commentid>
    <comment_count>0</comment_count>
    <who name="James Nurthen">nurthen</who>
    <bug_when>2023-02-03 16:42:42 -0800</bug_when>
    <thetext>When tabbing on the keyboard focus moves to elements within a closed details element which have tabindex=0

See https://codepen.io/jnurthen/pen/QWBYQwN
Tab through the page

Observed: Focus disappears after the &quot;Div with tabindex&quot; summary for one tab stop before re-appearing on the &quot;after&quot; button
Expected: All focusable elements within a closed details element should be skipped by tab navigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931046</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-02-03 16:42:56 -0800</bug_when>
    <thetext>&lt;rdar://problem/105026467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931386</commentid>
    <comment_count>2</comment_count>
    <who name="James Nurthen">nurthen</who>
    <bug_when>2023-02-06 08:30:51 -0800</bug_when>
    <thetext>Note: Press Tab to highlight each item on a webpage is checked.
You can see this issue in Adobe Documentation - example https://react-spectrum.adobe.com/react-spectrum/Button.html#props Under the Events or Layout expand/collapse region. (Note: this page has no visible focus indicator on safari for links right now which makes it slightly hard to operate.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940327</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-03-10 00:46:05 -0800</bug_when>
    <thetext>I think this will be fixed by bug 253680.

I tested this codepen (on local build with patch from above bug) and after tabbing, it goes to &apos;zoom&apos; button on codepen rather than stuck somewhere to be not see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977456</commentid>
    <comment_count>4</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2023-09-14 01:16:08 -0700</bug_when>
    <thetext>Ahmad, should we mark this issue as resolved?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978889</commentid>
    <comment_count>5</comment_count>
    <who name="Curtis Wilcox">webkit.org</who>
    <bug_when>2023-09-20 21:08:06 -0700</bug_when>
    <thetext>The above Codepen&apos;s contents have changed. The problem can&apos;t be reproduced with it as-is because the div with `tabindex=&quot;0&quot;` is within another div with `hidden`.

bug 260523 documents the problem as being much broader than just elements with `tabindex`, it seems to affect all focusable elements except anchor links.

I can still reproduce the problem in Technology Preview 179.

https://cdpn.io/pen/debug/PoXqPYJ</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020286</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-03-11 17:05:55 -0700</bug_when>
    <thetext>With STP 190, going to https://codepen.io/jnurthen/pen/QWBYQwN
This seems to have been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021291</commentid>
    <comment_count>7</comment_count>
    <who name="Curtis Wilcox">webkit.org</who>
    <bug_when>2024-03-15 04:33:25 -0700</bug_when>
    <thetext>It seems fixed in Safari 17.4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>