script: Clear style data from detached subtrees when attaching a shadow DOM#44259
Merged
Conversation
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#59262) with upstreamable changes. |
…ow DOM Instead of just clearing layout data, also clear style data from descendants that are now no longer part of the flat tree when attaching shadow DOM. This ensures that Stylo does not try to process them during restyling. This matches what Gecko does. Signed-off-by: Martin Robinson <mrobinson@fastmail.fm>
6625546 to
8abeb1e
Compare
|
🔨 Triggering try run (#24501613389) for Linux (WPT) |
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#59262). |
|
Test results for linux-wpt from try job (#24501613389): Flaky unexpected result (39)
Stable unexpected results that are known to be intermittent (19)
|
|
✨ Try run (#24501613389) succeeded. |
TimvdLippe
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of just clearing layout data, also clear style data from
descendants that are now no longer part of the flat tree when attaching
shadow DOM. This ensures that Stylo does not try to process them during
restyling. This matches what Gecko does.
Testing: This change adds a crash test and also causes a few subtests
to start passing.
Fixes: #40731.