Skip to content

refactor(cssom): share Stylo declaration mutation and serialization - #3

Open
ldm0 wants to merge 2 commits into
fix/servo-pointer-events-allfrom
refactor/cssom-share-native-mutation
Open

ldm0 wants to merge 2 commits into
fix/servo-pointer-events-allfrom
refactor/cssom-share-native-mutation

Conversation

@ldm0

@ldm0 ldm0 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Share one parsed CSSOM property between Stylo's declaration block and Moli's inline style writer. The resolved property ID supplies the affected names, and projection entries carry their names directly.

Serialize a parsed shorthand with Stylo's existing shorthand serializer and borrowed declarations. The compact representation of all supplies its keyword or unresolved value directly. Preserve the different declaration-list append and CSSOM replacement semantics, including the ordered update before copying a published block.

All 189 workspace Nextest tests passed. The tests compare direct value serialization with declaration-block serialization for shorthands, aliases, var(), custom values, and both priorities. The changed file passes rustfmt. Whole-workspace formatting and Clippy report existing diagnostics at the pinned baseline. Clippy with existing lints capped at warnings completed without new diagnostics in this change.

The follow-up test commit keeps the all assertions independent of process-global preferences. Before the fix, expanding the oracle block and reading it back could observe different enabled longhands during parallel cargo test runs. This reproduced in 9 of 20 local runs. After the fix, cargo test --workspace and all 190 workspace Nextest cases passed, along with 20 focused, 20 module, and 50 process-wide parallel repetitions.

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