Skip to content

fix: preserve fragmented block dimensions when cloning styles - #658

Draft
bubkoo wants to merge 2 commits into
codex/document-property-lifetimefrom
codex/fragmented-block-size
Draft

bubkoo wants to merge 2 commits into
codex/document-property-lifetimefrom
codex/fragmented-block-size

Conversation

@bubkoo

@bubkoo bubkoo commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Firefox can expose only the first fragment's computed height for a block split across columns. Copying that value truncates exported content by 960 blue pixels in the fixed native comparison. Reconstruct the full descendant block size from native fragment rectangles before user callbacks, within the measured zero-edge, horizontal, untransformed multicolumn domain. Preserve root sizing, selected properties and callback overrides. Use caller-realm native geometry/ancestry descriptors so named form fields cannot introduce exceptions or parent loops.

The native nested-SVG test also needs to wait for its actual inner SVG dependency: the outer green fallback can have a nonzero BBox before that document arrives. A direct native use of the known inline-CSS dependency joins the existing readiness check. Frame counts, deadlines, pixel expectations, GC and assertions remain unchanged; the control is removed in finally. A pure-native gated control reproduces green becoming yellow before any library capture, establishing the readiness gap without attributing every historical failure to it.

Head ea16708 is stacked on #650 at 877c476. Six files change. Its final test-only commit preserves the production tree and all compiled outputs from dce7635. No root-margin normalization or content-visibility workaround is included.

Validation:

  • Fixed fragment source comparison across Chromium, Firefox and WebKit: baseline30 passed/6 failed → initial candidate36 passed/0 failed. Final named-property matrix45/45; source HTML unchanged.
  • Fixed nested-dependency delay comparison: old readiness fails Chromium1200 and Firefox800 channels, WebKit0; corrected readiness matches native in all three engines. Browser-specific colors and original assertions remain intact.
  • Current-head full local lint/build/browser types/installed consumers pass; coverage1345 and source1226 pass, with four existing skips each. All192 built ESM/UMD browser tests pass, no skips/flaky outcomes. All292 frozen inputs match the commit.
  • Current-head CI46240719373 passes1345 coverage/1226 source/192 package tests (four existing skips per unit phase). Actual tested merge1c197be contains parents[877c476,ea16708] and the same07b7be7 tree as head. CodeQL is not scheduled for this stacked base; Codecov upload is queued successfully, with no patch/project verdict in the saved readback.

The earlier dce7635 full local source failure (Firefox nested-external,800 channels) remains preserved. Its exact resource timing was not recorded, so the controlled reproduction does not prove the unique cause of that old run. Capturing a page while resources are still changing is not claimed solved. Edge decorations, transformed/shadow/slot geometry and internal/replaced boxes retain previous handling.

Prior fragment evidence and prior-head remote receipts retain original failures, hashes and verifiers. Readiness proof and current-head local gates preserve226 raw files plus independent pixel verification. Current-head remote receipts verify15 payloads, exact production/dependency trees and the original ZIP digest/CRC/all14 members. Keep draft. No npm publication or merging.

@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.66102% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.35%. Comparing base (877c476) to head (ea16708).

Files with missing lines Patch % Lines
src/clone-fragments.ts 79.31% 2 Missing and 10 partials ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##           codex/document-property-lifetime     #658      +/-   ##
====================================================================
- Coverage                             88.59%   88.35%   -0.24%     
====================================================================
  Files                                    19       20       +1     
  Lines                                  2166     2225      +59     
  Branches                                617      646      +29     
====================================================================
+ Hits                                   1919     1966      +47     
- Misses                                  114      116       +2     
- Partials                                133      143      +10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant