Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## codex/document-property-lifetime #661 +/- ##
====================================================================
- Coverage 88.59% 86.30% -2.29%
====================================================================
Files 19 20 +1
Lines 2166 2615 +449
Branches 617 764 +147
====================================================================
+ Hits 1919 2257 +338
- Misses 114 145 +31
- Partials 133 213 +80 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
A paused CSS animation can restart when the captured subtree includes its keyframes. For example, a 1s translateX animation paused at 500ms renders its initial pose after export. This snapshots one supported CSSAnimation's primitive timing and explicit keyframes, then restores that pose after clone callbacks. Native
effect.updateTiming()andeffect.setKeyframes()overrides are included.Current head
b4d8e74568791e76045f9f0542d3abd0bd2444c9adds the 12 contract cases without changing the production source tree. Its latest CI run46725877838 fails: coverage1394 passed/6 skipped; source1273 passed/2 failed/6 skipped. Both Firefox CSS-animation lifetime controls report nativeCollected=true/capturedCollected=false after the original three GC requests, including the held disposed capture. Built-package tests and coverage uploads were skipped. Older bef750d CI success does not clear this head.The December4 local Node24.11 run preserves a separate WebKit SVG-fragment GC failure (coverage1393 passed/1 failed/6 skipped) and a Firefox runner-iframe selection timeout in an explicit source run (1274 passed/1 failed/6 skipped). Targeted Firefox6 and a separate four-case diagnostic pass do not explain or replace these failures. The PR stays draft; no lifetime fix is claimed.
Stacked on #650, targeting
codex/document-property-lifetimeat exact base877c476888bbc2146a15d3c673f7a3385f3b9ddb.The implementation records clone baselines before callbacks and installs private cascade mirrors after their changes. Source STYLE text and LINK URLs remain literal. Callback timing retains its priority and source order. Installation writes only to an unexposed, freshly constructed inert SVG copy, preserving the public clone's MutationObservers. Unknown plans use the original serialization path without a new API error or partial installation. No active frame/script, raster prediction, extra animation-frame wait or additional stabilization draw is introduced.
The supported domain is deliberately bounded: one CSSAnimation on an ordinary HTML element or its before/after pseudo, numeric interior time, one normal iteration, linear replace composition and explicit translateX(px) frames with strictly increasing offsets. Default style copying, flat known selectors and readable literal/data CSS are required. Multiple/additive/implicit or percentage-time effects, complex selectors/layers/imports, dynamic style-attribute dependencies and uncertain declaration ownership retain the existing path. Hidden customized-built-in
isvalues are conservatively detected through native HTML serialization; Firefox's XML serialization can synthesize them after the visible attribute is removed.Validation, with unchanged deadlines, browser settings and original GC assertions:
Historical
bef750dvalidation used macOS, Node 22.17.0 and Playwright 1.64.1 (Chromium 156, Firefox 157, WebKit 27.2); repository CI uses Node 24. The 294 measured inputs match the committed Git blobs, and all 135 compiled files remain unchanged through normal commit hooks. Exact-head CI run46264098844 succeeds with 1358 coverage /1239 source (6 skips each) /168 built-package tests. Tested merge c709595 has parents [877c476,bef750d] and the exact head tree. The separate Codecov checks fail: patch75.55% (target88.59%), project86.30% (-2.29%). The PR remains a draft; no current-head CodeQL run is scheduled for this stacked base. No device or npm-release acceptance is claimed.Independent paired smoke diagnostics ran the original877 and candidate bef once each in Firefox/WebKit: four passed without reproducing the two original full-run timeouts. Baseline ESM was reconstructed; its UMD matches the frozen original. Added Promise observation and resource routing change scheduling. These diagnostic passes neither replace 166/2 nor establish a cause.
Immutable evidence at documentation commit
7e4b44a286a487af875f864faf4e337d1bb969a0:First failures and scope limits remain preserved. The offline iPhone material has static checks only; no physical-device acceptance is claimed.
Additional regression coverage
Added 12 CSS animation contract cases covering native pose matching and preservation of author changes. Browser-test types and all 12 Chromium cases passed locally.
Current-head recovery records and unchanged-input local diagnostics: December4 evidence. The local four-case probe changes diagnostic topology and does not disprove the Linux failures.