<?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>295009</bug_id>
          
          <creation_ts>2025-06-25 19:54:03 -0700</creation_ts>
          <short_desc>[css-anchor-position-1] Fallback options are not &quot;sticky&quot;</short_desc>
          <delta_ts>2025-08-16 02:29:44 -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 Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/54345</see_also>
          <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>289743</blocked>
    
    <blocked>291856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="fantasai">fantasai.bugs</reporter>
          <assigned_to name="Kiet Ho">kiet.ho</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>kiet.ho</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>2125932</commentid>
    <comment_count>0</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-06-25 19:54:03 -0700</bug_when>
    <thetext>Overview:

By default, the position-try fallbacks are &quot;sticky&quot;, i.e. an option is used until it&apos;s invalidated either because
a) it no longer fits
b) there&apos;s a style recalculation that triggers re-evaluation of position-try options

This behavior is intended to provide some visual stability for the user.

Affected WPT Tests:
* http://wpt.live/css/css-anchor-position/last-successful-basic.html
* http://wpt.live/css/css-anchor-position/last-successful-change-fallbacks.html
* http://wpt.live/css/css-anchor-position/last-successful-change-try-rule.html
* http://wpt.live/css/css-anchor-position/last-successful-iframe.html
* http://wpt.live/css/css-anchor-position/last-successful-intermediate-ignored.html

Specification Notes:
See https://www.w3.org/TR/css-anchor-position/#fallback

It&apos;s possible that we might find places where the spec should be adjusted, since we are the second implementation and what makes sense to do here might not be entirely obvious. In these cases we should implement what makes sense to us and bring the issue to the CSSWG for discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125933</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-25 19:54:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/154352444&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134813</commentid>
    <comment_count>2</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-08-06 17:27:43 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/49037</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2136667</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-08-14 17:13:54 -0700</bug_when>
    <thetext>Committed 298718@main (87540245e449): &lt;https://commits.webkit.org/298718@main&gt;

Reviewed commits have been landed. Closing PR #49037 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2136685</commentid>
    <comment_count>4</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-08-14 18:32:02 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/54345</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2136983</commentid>
    <comment_count>5</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-08-16 02:29:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/158452223&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>