Skip to content

perf(style): use Stylo for demand-driven incremental restyling - #3726

Merged
ldm0 merged 1 commit into
mainfrom
refactor/style-native-restyle
Nov 25, 2026
Merged

ldm0 merged 1 commit into
mainfrom
refactor/style-native-restyle

Conversation

@ldm0

@ldm0 ldm0 commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

Use Stylo's single-element restyle computation to match selectors, recascade existing rules, or replace the inline rule. This keeps CSSOM demand-driven and leaves Moli's animation timeline in charge of animation updates.

Inline changes that affect selectors or attr() still take the scoped matching path. The inherited work stays lazy until an element's style is read.

Depends on Stylo #4.

Validation

  • Formatting and workspace Clippy passed. Full Nextest passed with 24,454 tests and 20 skipped.
  • The 10,000-child regression warms every child and reads one after changing the parent's inline color. Stylo computes two elements and matches zero selectors.
  • The focused suite covers inline rule replacement, reset inheritance, root font units, Shadow DOM, container queries, and temporary print styles.

@ldm0
ldm0 added this pull request to stack #3729 November 25, 2026 16:47
@ldm0
ldm0 merged commit d9c4c8d into main Nov 25, 2026
8 of 12 checks passed
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