<?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>294260</bug_id>
          
          <creation_ts>2025-06-10 07:55:11 -0700</creation_ts>
          <short_desc>Missing feature: implicit anchor (CSS anchor positioning)</short_desc>
          <delta_ts>2025-06-16 08:07: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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>284226</dependson>
    
    <dependson>294066</dependson>
    
    <dependson>294112</dependson>
          <blocked>291856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Una">una.kravets</reporter>
          <assigned_to name="Antti Koivisto">koivisto</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>koivisto</cc>
    
    <cc>rik</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2122732</commentid>
    <comment_count>0</comment_count>
    <who name="Una">una.kravets</who>
    <bug_when>2025-06-10 07:55:11 -0700</bug_when>
    <thetext>Safari 26&apos;s implementation of anchor positioning is missing a key feature: [implicit anchoring](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning/Using#implicit_anchor_association). This is critical DX for popovers and other commonly anchored UI elements.

Implicit anchoring means users do not need to explicitly give each popover and invoking button an anchor name and position-anchor. Adding all of these additional styles muddles up HTML, and isn&apos;t reasonable to maintain in websites with many anchored elements.

Please add this feature to Safari&apos;s implementation of anchor positioning to align with the [HTML specification](https://html.spec.whatwg.org/multipage/popover.html) and [CSSWG Draft](https://www.w3.org/TR/css-anchor-position-1/#implicit)!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122761</commentid>
    <comment_count>1</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2025-06-10 09:59:09 -0700</bug_when>
    <thetext>@fantasai: I&apos;m marking this as blocking css-anchor-position-1 since I agree with its importance. I&apos;m not involved in the implementation so I&apos;m just doing that to raise awareness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122862</commentid>
    <comment_count>2</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-06-10 15:32:05 -0700</bug_when>
    <thetext>There have been work to implement this:
* https://bugs.webkit.org/show_bug.cgi?id=284226
* https://bugs.webkit.org/show_bug.cgi?id=294112
* https://bugs.webkit.org/show_bug.cgi?id=294066

I can&apos;t comment when they&apos;ll be available in STP or Safari in iOS/macOS 26 though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123613</commentid>
    <comment_count>3</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-06-13 15:08:30 -0700</bug_when>
    <thetext>Fixed by Antti in the dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123956</commentid>
    <comment_count>4</comment_count>
    <who name="Una">una.kravets</who>
    <bug_when>2025-06-16 08:07:45 -0700</bug_when>
    <thetext>Awesome, thanks for your work on this :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>