Skip to content

Conversation

@khushalsagar
Copy link
Member

Applies resolution at #10145.

@khushalsagar khushalsagar requested review from nt1m and vmpstr May 10, 2024 19:10
@khushalsagar khushalsagar merged commit 58350b3 into w3c:main May 13, 2024
webkit-commit-queue pushed a commit to nt1m/WebKit that referenced this pull request May 13, 2024
https://bugs.webkit.org/show_bug.cgi?id=273883
rdar://127995859

Reviewed by Antti Koivisto.

Corresponding spec issue: w3c/csswg-drafts#10145
Corresponding spec PR: w3c/csswg-drafts#10306

This ignores view-transition names from shadow DOM, given the pseudo-elements are linked to the document element,
exposing shadow DOM names to the view transition pseudo-elements would be a violation of shadow DOM principles.

We don't check for the tree scope directly in `forEachRendererInPaintOrder` because a shadow DOM element might have
flat tree descendants that have an outer tree scope.

We also use the `Styleable`'s element instead of `RenderElement`'s element because for pseudo-elements we want to consider
the associated element's tree scope.

* LayoutTests/TestExpectations:
* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/dom/ViewTransition.cpp:
(WebCore::ViewTransition::captureOldState):
(WebCore::ViewTransition::captureNewState):

Canonical link: https://commits.webkit.org/278704@main
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.

2 participants