<?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>312499</bug_id>
          
          <creation_ts>2026-04-16 11:48:20 -0700</creation_ts>
          <short_desc>[macOS iOS] imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form.html is a flaky text failure.</short_desc>
          <delta_ts>2026-04-16 12:01:36 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Diego De La Toba">d_delatoba</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <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>2201157</commentid>
    <comment_count>0</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-04-16 11:48:20 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form.html is a flaky text failure on macOS and iOS.


HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fshadow-dom%2Freference-target%2Ftentative%2Fform.html


DIFF:
--- /Volumes/Data/worker/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/build/layout-test-results/imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form-expected.txt
+++ /Volumes/Data/worker/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/build/layout-test-results/imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form-actual.txt
@@ -5,7 +5,7 @@
 PASS Reference target works with setAttribute(&apos;form&apos;)
 FAIL Reference target works with form-associated custom element. realForm.moveBefore is not a function. (In &apos;realForm.moveBefore(customElementInShadow, input)&apos;, &apos;realForm.moveBefore&apos; is undefined)
 FAIL Reference target works with nested shadow trees. assert_equals: The .elements property should have 3 elements. expected 3 but got 2
-FAIL Form association is updated when form is inserted in or removed from shadow DOM, including in nested shadow DOM assert_equals: The first element should be the reset button outside the shadow root. expected Element node &lt;button id=&quot;reset-button-6&quot; type=&quot;reset&quot; form=&quot;fancy-form... but got Element node &lt;input id=&quot;input-in-shadow&quot; value=&quot;default value&quot; form=&quot;r...
+FAIL Form association is updated when form is inserted in or removed from shadow DOM, including in nested shadow DOM assert_equals: The reset button should show the shadow host as its form property. expected Element node &lt;fancy-form-6 id=&quot;fancy-form-6&quot;&gt;&lt;/fancy-form-6&gt; but got null
 FAIL Form association works for image inputs, which aren&apos;t in the elements collection assert_equals: expected Element node &lt;fancy-form-7 id=&quot;fancy-form-7&quot;&gt;
 
   &lt;/fancy-form-7&gt; but got null


DIFF URL:
https://build.webkit.org/results/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/311376@main%20(3306)/imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form-pretty-diff.html


REPRODUCTION:
I was able to reproduce this on macOS and iOS 26.4 with the following:

run-webkit-tests --no-build --no-retry --no-show-results --exit-after-n-failures=1 --expect-pass --iterations=50 --force --ios-simulator --release imported/w3c/web-platform-tests/shadow-dom/reference-target/tentative/form.html

I am going to mark expectations as pass fail while this pends investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201158</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-16 11:48:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/174939846&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201162</commentid>
    <comment_count>2</comment_count>
    <who name="Diego De La Toba">d_delatoba</who>
    <bug_when>2026-04-16 11:58:34 -0700</bug_when>
    <thetext>Test gardening pull request: https://github.com/WebKit/WebKit/pull/62912</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201165</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-16 12:01:36 -0700</bug_when>
    <thetext>Test gardening commit 311394@main (871735e3600c): &lt;https://commits.webkit.org/311394@main&gt;

Reviewed commits have been landed. Closing PR #62912 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>