Skip to content

Expose native snapshot invalidation to Moli - #5

Draft
ldm0 wants to merge 1 commit into
refactor/servo-single-element-restylefrom
refactor/moli-native-snapshot-invalidation
Draft

ldm0 wants to merge 1 commit into
refactor/servo-single-element-restylefrom
refactor/moli-native-snapshot-invalidation

Conversation

@ldm0

@ldm0 ldm0 commented Nov 25, 2026

Copy link
Copy Markdown
Member

Expose Stylo's native snapshot invalidation to Moli's demand-driven traversal. The opt-in Servo feature lets the DOM adapter record restyle hints and remember pruned branches for subsequent CSSOM reads.

  • Keep native state and attribute dependency matching, sibling traversal, and subtree pruning.
  • Report pruned hidden or unstyled branches to the host as descendant work. The host can resolve those branches on demand.
  • Expose whether a cascade has nth-child selector-list dependencies so the embedder can keep its existing sibling-membership handling during the migration.

Validation on Rust 1.100.0

  • Nextest, default Servo feature set: 192 passed.
  • Nextest, with stylo/moli: 192 passed.
  • Workspace Clippy with stylo/moli and the existing derive_ord_xor_partial_ord lint allowed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant