Skip to content

script: add force option for assign-slottables for a tree#57471

Merged
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_42250
Feb 2, 2026
Merged

script: add force option for assign-slottables for a tree#57471
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_42250

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Feb 1, 2026

In the case of node removal, if the subtree of the removed node contains <slot> element, force traverse down to each <slot> element is needed to reset the assignment of the slottables that currently being assigned to the <slot> element. This changes add this force option to assign_slottables_for_a_tree, and only set true to node removal.

Testing: Should be covered by current WPT test, try run
Fixes servo/servo#35188
Fixes servo/servo#42182

cc @TimvdLippe @simonwuelker @xiaochengh
Reviewed in servo/servo#42250

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync merged commit 622ddaf into web-platform-tests:master Feb 2, 2026
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_42250 branch February 2, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants