<?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>289005</bug_id>
          
          <creation_ts>2025-03-03 14:17:06 -0800</creation_ts>
          <short_desc>REGRESSION(291130@main?): [ iOS ] imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-006.html  is a constant failure.</short_desc>
          <delta_ts>2025-03-05 08:55:23 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yasmin Karimi">y_karimi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2100034</commentid>
    <comment_count>0</comment_count>
    <who name="Yasmin Karimi">y_karimi</who>
    <bug_when>2025-03-03 14:17:06 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-006.html 

This test is a constant failure on iOS.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fcss%2Fcss-anchor-position%2Fanchor-scroll-position-try-006.html

TEXT DIFF:

@@ -1,6 +1,6 @@
 
-FAIL Should use the last fallback position initially assert_equals: Anchored element should be at the top of anchor expected 600 but got 800
-FAIL Should use the third fallback position with enough space below assert_equals: Anchored element should be at the bottom of anchor expected 450 but got 700
-FAIL Should use the second fallback position with enough space right assert_equals: Anchored element should be at the top of anchor expected 450 but got 800
-FAIL Should use the first fallback position with enough space below and right assert_equals: Anchored element should be at the bottom of anchor expected 450 but got 700
+PASS Should use the last fallback position initially
+FAIL Should use the third fallback position with enough space below assert_equals: Anchored element should be at the bottom of anchor expected 450 but got 500
+FAIL Should use the second fallback position with enough space right assert_equals: Anchored element should be at the top of anchor expected 450 but got 600
+FAIL Should use the first fallback position with enough space below and right assert_equals: Anchored element should be at the bottom of anchor expected 550 but got 500
 
DIFF URL:

https://build.webkit.org/results/Apple-iPadOS-18-Simulator-Release-WK2-Tests/291510@main%20(485)/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-006-pretty-diff.html

REPRODUCIBILITY:

I was able to reproduce this issue on the iOS 18.2 simulator at ToT using the following command:

run-webkit-tests --ios-simulator --child-processes 2 -f imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-006.html --iterations 5

REGRESSION:

According to the results dashboard and contextual information, the probable regression point is 291130@main. The code paths changed in this commit appear to be related to the observed regression test failure. 

This test was a flaky failure and became a constant failure after 291123@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100035</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-03-03 14:17:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/146052560&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100037</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-03 14:30:46 -0800</bug_when>
    <thetext>Test gardening commit 291524@main (4ca4492bd5ad): &lt;https://commits.webkit.org/291524@main&gt;

Reviewed commits have been landed. Closing PR #41804 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100552</commentid>
    <comment_count>3</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2025-03-05 00:55:23 -0800</bug_when>
    <thetext>gardening was the right fix here</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>