Skip to content

refactor(cssom): use Stylo parsed declarations throughout CSSOM - #3696

Merged
ldm0 merged 1 commit into
refactor/cssom-concrete-inline-sourcefrom
refactor/cssom-use-stylo-declarations
Nov 25, 2026
Merged

ldm0 merged 1 commit into
refactor/cssom-concrete-inline-sourcefrom
refactor/cssom-use-stylo-declarations

Conversation

@ldm0

@ldm0 ldm0 commented Nov 25, 2026

Copy link
Copy Markdown
Member

Use the same parsed property and mutation primitives for CSSOM in both the renderer and the declaration block wrapper. The wrapper still handles ownership and copy-on-write publication. Its read operations reuse Stylo's CSSOM declaration naming and serialization.

Use the resolved property ID to get affected names. Alias validation reads the emitted names from the parsed declarations. The renderer keeps its compatibility checks. A no-op removal keeps the published block shared.

The dependency pins the tested production commit e6b36a449 from lexmount/stylo#3. Its subsequent commit changes only the Stylo unit tests. Stylo uses its own borrowed shorthand serializer and reads the compact representation of all directly.

Validation includes workspace formatting, Clippy with all targets and features, 480 focused cases and full Nextest. Twelve before-and-after browser evaluations matched, including CSSOM values, priorities, removals and serialized text.

@ldm0
ldm0 added this pull request to stack #3686 November 25, 2026 11:58
@ldm0
ldm0 force-pushed the refactor/cssom-use-stylo-declarations branch from 2f40223 to 73553a3 Compare November 25, 2026 12:07
@ldm0
ldm0 merged commit b284f72 into main Nov 25, 2026
13 of 24 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