Skip to content

Expose Stylo restyling for a single element - #4

Open
ldm0 wants to merge 3 commits into
perf/shared-child-restyle-hintsfrom
refactor/servo-single-element-restyle
Open

ldm0 wants to merge 3 commits into
perf/shared-child-restyle-hintsfrom
refactor/servo-single-element-restyle

Conversation

@ldm0

@ldm0 ldm0 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Share Stylo's existing per-element restyle implementation with embedders that schedule style work on demand. The caller selects work with ElementData::restyle_kind, resolves the element, and schedules the returned child hint. The standard bulk traversal uses the same function.

Servo embedders with their own animation timeline can use SkipAnimationUpdates to resolve base styles without starting transitions or animations in Stylo.

The compact all serialization test checks the parsed value directly. The parallel debug suite can enable additional longhands between expanding a block and reading the shorthand back. The test fix is shared with Stylo #3.

Validation

  • The changed files pass rustfmt.
  • The workspace debug suite passed. The parallel Stylo library suite failed 16 of 30 runs before the test adjustment and passed all 30 afterward.
  • Workspace Nextest passed all 192 tests.
  • Workspace Clippy completed with the existing KeyframePercentage lint allowed on the command line.

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