Skip to content

fix: preserve native scroll and scrollbar stylesheet resources - #651

Draft
bubkoo wants to merge 16 commits into
codex/document-property-lifetimefrom
codex/native-scroll-fidelity
Draft

bubkoo wants to merge 16 commits into
codex/document-property-lifetimefrom
codex/native-scroll-fidelity

Conversation

@bubkoo

@bubkoo bubkoo commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Native scrolled captures lose qualified scrollbar rules and stylesheet resources, so track/thumb colors, dimensions, imports and relative URLs can differ from the live page. Preserve supported native scroll state and snapshot its rules through the existing stylesheet resource policy, resolver and cancellation lifecycle.

Stacked on #650; still a draft. macOS WebKit glyph, inset-shadow and DPR2 fractional-coordinate checks remain failing, as do the recorded Linux Chromium glyph checks. Actual part hover, arbitrary qualified-selector contexts and external SVG paint provenance remain open. The latest integrated head is a2caa9df24cdfaac5f54ee59ff61696b3de8bdfb, with #650 head 877c476 merged. The single import conflict was resolved by retaining the exact measured configuration. The entire merge tree equals its first parent's tree, and all 449 measured inputs are unchanged; exact-head remote checks are still independent.

The resource repair retains live CSSOM changes, final-response bases, inherited CSS encodings, nested selector specificity and CSSNestedDeclarations order. SVG preparation preserves the original deadline/error and reports available diagnostics. The branch also includes the independently reviewable cancellation repair #654, development dependency update #653 and GC runner selection fix #655. Our superseded draft #652 is closed unmerged, with its branch and failed evidence preserved; no original contributor PR has been closed.

Validation:

  • Fixed final resource tests/configuration, changing four production files: 62 failed / 2 passed before; 64 passed after. Another 32 Firefox legacy-scrollbar cases are unsupported. Chromium/WebKit ESM and UMD resource groups pass.
  • Latest integrated runtime 854fa0a (the following b921bf7 adds docs/evidence only): default coverage 1638 passed / 2 WebKit failures / 45 skipped, so its source phase did not run. Explicit full source: 1519 passed / the same 2 failures / 45 skipped. Full packages: 176 passed / 2 WebKit native-scroll group failures / 2 unsupported. Package failures retain glyph, fractional-coordinate and inset-shadow differences. Each run's 449 inputs remain unchanged.
  • The earlier integrated run had 1636 passes / 4 failures / 45 skips, including two FrameDetached errors. The only 447-to-449 input changes are the GC runner helper and its configuration; runtime and generated bytes are unchanged. These are separate run observations, not strict proof that the helper caused the count change.
  • Lint, build, types and installed package consumers passed. Cancellation's two fixed comparisons (93 factory cases and 84 public/image cases) are independent baselines. Their full local/remote results do not replace native-pixel gates. chore: update lint dependencies to fixed minimatch #653/fix: preserve cancellation reasons across capture and images #654/test: select the actual Vitest runner for GC barriers #655 currently have failing CI with successful CodeQL; fix: isolate foreign DOM access from property caches #650 head 877c476 has successful CI/CodeQL and unchanged runtime bytes, which does not validate this draft.
  • Exact current head a2caa9d: CI 45501931582 failed with 1639 coverage passes / 1 Chromium visible-text pixel failure / 45 skips (214 differing channels). Source, packages and Codecov did not run; this was not a GC/held/frame failure. The tested merge's parents are [877c476,a2caa9d] and its full tree equals the head/first-parent tree. Earlier b921bf7 had no CI because of its base conflict; its old merge ref did not test that head. CodeQL is not scheduled by the existing stacked-base filter. Current remote evidence and conflict readback are published on a separate receipts branch; this PR's source head remains a2caa9d. The >20000-line Patch Size failure is a separate label automation problem, not a test assertion.

Current integrated checks and indexed raw evidence preserve all four runs and screenshot provenance. Independent fixes' remote failures and GC runner remote failure distinguish owner and native controls. Earlier resource, Linux, readiness, root-origin and native-part archives remain available.

The exact integrated UMD passed a physical iPhone Safari subset via native Mirroring after the user's four-hour gate: 14/14 public cancellation reason-identity cases, loaded cross-realm SVG font output after removing the source iframe, and all 12800 pixels of the default 160x80 PNG. A trusted native pointer click opened the PNG in a new tab; return and trusted cleanup recorded the same Blob URL revocation and zero owned resources. Raw phone JSON, own-page screenshots and independent verification bind UMD 9c090fc2 and source fingerprint b29cfa7e. This mixed-build subset is not the full isolated #654 suite, native pixel equality, device GC or ESM acceptance; the font control explicitly uses three stabilization attempts. A verified short bootstrap requires a public HTTPS request, so this was not a zero-network phone session. There is no separate post-revoke fetch or runtime opener probe. Created test tabs were closed, clipboard/input restored and Mirroring ended. No npm publication or Mac network changes.

Related: #376, #407, #408, #585, #427; issues #81 and #345.

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