<?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>294160</bug_id>
          
          <creation_ts>2025-06-07 11:10:49 -0700</creation_ts>
          <short_desc>iOS Safari bugs with popover and :has()</short_desc>
          <delta_ts>2025-06-16 10:30:45 -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>Layout and Rendering</component>
          <version>Safari 18</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 18</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>291174</dup_id>
          
          <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="Matt Wilcox">mail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>koivisto</cc>
    
    <cc>ntim</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>2122330</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Wilcox">mail</who>
    <bug_when>2025-06-07 11:10:49 -0700</bug_when>
    <thetext>I&apos;m not 100% sure on the root issue, but this _seems_ to be a problem with how `:popover-open` and `:has()` interact, specifically on the iOS version of Safari, as well as an issue with button styling interacting with these when `appearance: none;` is set on a button.

A reduced test case showing the issue is here: https://codepen.io/mattwilcoxuk/pen/dPoWQWx

Works fine on Mac Safari and all other tested browsers. Breaks weirdly in two different ways on iOS Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122707</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-06-10 06:25:13 -0700</bug_when>
    <thetext>Do you know what exact version of iOS you&apos;re on? 

It&apos;s possible that this was fixed by bug 291174, but I&apos;d need to double check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122709</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Wilcox">mail</who>
    <bug_when>2025-06-10 06:28:37 -0700</bug_when>
    <thetext>Thanks for looking into this. I&apos;m running iOS 18.5 (22F76) on an iPhone 14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123730</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-14 11:15:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/153401888&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124010</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-06-16 10:30:45 -0700</bug_when>
    <thetext>I can confirm this is fixed by bug 291174, which should be in iOS 18.6 and iOS 26.0.

*** This bug has been marked as a duplicate of bug 291174 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>