Repository navigation
test: disposition all 121 planned ReactDOMFloat parity cases with executable evidence - #725
Merged
Merged
Conversation
…cutable evidence Retires the ReactDOMFloat test-evidence backlog from #711: 59 cases flip to covered (41 newly ported conformance tests across float-evidence-{1,2,3} plus links into existing Float/hint suites), 54 to documented non-goal/divergence with per-case rationale, and 7 stay planned against two newly-surfaced engine gaps (streaming drops late-discovered Float resources; transitive fallback-hoistable suppression) and three warning-message families. Two red-first fixes surfaced by the port: the document-metadata hoist partition is now HTML-scoped, so nothing hoists (or becomes a stylesheet resource) from an SVG lexical context while foreignObject re-enters the HTML rules; and preinitModule with an invalid `as` warns in development as documented instead of failing silently. Co-Authored-By: Claude Fable 5 <[email protected]>
The eighth case is the server-side hoistable prioritization ordering defer. Co-Authored-By: Claude Fable 5 <[email protected]>
23 of 27 tasks
trueadm
marked this pull request as ready for review
August 12, 2026 14:26
7 tasks done
trueadm
added a commit
that referenced
this pull request
Aug 12, 2026
PR #727 made streaming SSR ship Float stylesheet resources discovered after the shell with their boundary's reveal wave, closing the gap #725 had deferred three ReactDOMFloat-test.js ledger cases against. Flip those cases (:1923 …7b6da8a5, :2041 …8d52f5f3, :2350 …745930fa) to covered with evidence into the 'streamed late boundaries' describe, add one adapted test for the :2350 inline-flush shape (inner boundary resolves first; its complete content and sheet ride the parent's reveal wave exactly once), and regenerate the coverage report. ReactDOMFloat planned drops 8 -> 5. Co-authored-by: Claude Fable 5 <[email protected]>
Closed
7 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retires the largest block of #711's test-evidence backlog: all 121 planned
ReactDOMFloat-test.jsledger cases are now dispositioned, each against the upstream test body at the pinned commit (6117d7cca490).coveredwith executable adapted evidence: 41 newly ported conformance tests (float-evidence-{1,2,3}.test.ts+ fixtures, everyitciting its upstream line) plus links into the existing Float/hint/hoist suites where behavior was already pinned. Modes recorded per case (client / server-string / server-stream / hydrate-match / production-compile).documented(48 non-goal, 6 divergence) with per-case rationale: suspensey commits, whole-document/createRoot(document)containers, Fizz bootstrap/external-runtime instruction protocol, Fizz's rendered-<img>preload scanning, SuspenseList, shadow-root resource scoping, and streamed-boundary head content (the standing documented divergence).planned, honestly: 4 against two newly-surfaced engine gaps (below), 3 warning-message families Octane doesn't emit yet, and 1 server-side hoistable prioritization case (charset/viewport-class metadata ordered ahead of other head content).Fixes folded in (both red-first)
isHoistableHeadElementNodeas SVG-exempt, so a precedence link inside<svg>hoisted AND re-classified as a stylesheet resource. The whole hoist model is now HTML-scoped (foreignObjectre-enters). One documented template-model bound:<meta>inside<svg>on pure client mounts is relocated by the HTML parser's foreign-content breakout rules — it still never becomes document metadata, and SSR serializes it inline correctly.preinitModuleinvalid-asnow warns in development as the docs promised, instead of failing silently.Engine gaps surfaced (to file in #711, not fixed here)
use()-gated hrefs) appear nowhere in the streamed HTML — only the first pass's head is written. Three deferred cases pin the observable; repro details in the spawned follow-up task. Counterpart strength, now test-pinned: statically-declared sheets inside pending boundaries flush WITH the shell, precedence-normalized (stronger than React's segment-time insertion).<meta>from a completed boundary nested inside a pending boundary's fallback into the streamed head; React suppresses fallback hoistables transitively. Direct inline-fallback hoistables are correctly suppressed (ported).@trytrees produce precedence group order by leaves-first execution ([three, one, two]) where SSR/React give [one, two, three]; dedupe/contiguity/within-group order all hold.Process
Three parallel agents each owned a disjoint line-range slice with its own test file, reporting machine-readable decisions; ledger flips were applied centrally. Red-capability was spot-verified per slice by temporary runtime/fixture breaks (all reverted; diffs clean except new files). Consolidation fixed agent-report drift deterministically: mode labels normalized to the schema enum via a mapping table, multi-test evidence strings split into per-test records.
Validation
pnpm format,pnpm typecheckpnpm test— 21,192 passed, 8 failed; every failure triaged as not-from-this-diff (below)node scripts/react-parity/check.mjs— ledger + coverage metadata validate clean, and all new evidence tests passed inside the parity-wide lane; the lane itself reported two non-passing tests, both accounted for belowfloat-evidence-1(20),float-evidence-2(36),float-evidence-3(26),hoist-exclusions(+SVG case),resource-hints(+preinitModule warn), plus the head/svg/float neighbor suitesLocal-failure triage (none caused by this diff):
day-picker/calendar.test.ts(2) andalien-signals/upstream-original.test.ts(1): reproduce identically with this PR's source files restored to pristinemain— pre-existing local-environment failures; main CI is green.day-picker.browser,drei/upstream-e2e.browser,vaul/snap-drag.browser,doom-production(1 each): the known local browser-lane provisioning noise.native-change.test.tsbrowser lane (1) andmarkdown/public-types.test.ts(parity lane): 30s-timeout/registration flakes under full-suite CPU contention; both pass in isolation (12/12 and 1/1).Risk / follow-ups
plannedby design.Provenance
agent-authored)Note
Medium Risk
Mostly conformance evidence and docs, but the SVG hoist-partition change and
preinitModulewarning touch document-head metadata/resource behavior on client and SSR.Overview
Retires the planned
ReactDOMFloat-test.jsbacklog: 59 cases now have executable adapted evidence (41 newly ported conformance tests across three suites, plus links into existing Float/hint suites), 54 are documented non-goals/divergences with rationale, and 8 remain planned against engine gaps, warning families, and hoistable prioritization.Folds in two small fixes the evidence work surfaced: document-metadata hoisting is now HTML-scoped (nothing hoists from an SVG lexical context;
foreignObjectre-enters HTML rules), andpreinitModulewith an invalidaswarns in development instead of failing silently.Updates parity coverage counts and documents the SVG hoist exclusion bound in
differences-from-react.md.Reviewed by Cursor Bugbot for commit 1e7d4c0. Bugbot is set up for automated code reviews on this repo. Configure here.