[css-view-transitions-1] Fix tree-scoping from element-based to name-based.#10528
[css-view-transitions-1] Fix tree-scoping from element-based to name-based.#10528
Conversation
… being name-based. The previous fix for using the tree context made it inconsistent with how shadow DOM styling works for things like anchor positioning, and made it so that e.g. `::part` cannot set a `view-transition-name`. Refactored to make the `view-transition-name` a tree-scoped name, rather than check the tree context of the element. Closes w3c#10145
khushalsagar
left a comment
There was a problem hiding this comment.
Add a line to the appendix for changes below. LGTM otherwise. Thanks!
Done |
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22
|
Not sure the spec change is worded quite right, if you have: I expect the effective view transition name of the Since The spec change suggests otherwise, although I think the Chromium change is correct. Anyway it would be good to add coverage for that case + capturing ::before/::backdrop pseudo-elements (where we should use the originating element's scope) in those situations as well. |
|
Fwiw, the change is fairly easy to adopt on WebKit's side: WebKit/WebKit#30501 |
Hmm right, so the wording should be something along the line of the implementation, where we get the computed value for |
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1323734}
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1323734}
https://bugs.webkit.org/show_bug.cgi?id=276236 rdar://131139528 Reviewed by Matt Woodrow. Follow w3c/csswg-drafts#10528 * LayoutTests/TestExpectations: * Source/WebCore/dom/ViewTransition.cpp: (WebCore::effectiveViewTransitionName): (WebCore::ViewTransition::captureOldState): (WebCore::ViewTransition::captureNewState): (WebCore::ViewTransition::documentElementIsCaptured const): Canonical link: https://commits.webkit.org/280701@main
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. (cherry picked from commit db489af) Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1323734} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5679292 Auto-Submit: Noam Rosenthal <nrosenthal@chromium.org> Commit-Queue: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/branch-heads/6533@{#1067} Cr-Branched-From: 7e0b87e-refs/heads/main@{#1313161}
…coped rather then nodes, a=testonly Automatic update from web-platform-tests View transitions: names should be tree-scoped rather then nodes See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1323734} -- wpt-commits: bf29ed53ac66890035b47a75d7d84df15245a411 wpt-pr: 47006
See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1323734}
…coped rather then nodes, a=testonly Automatic update from web-platform-tests View transitions: names should be tree-scoped rather then nodes See spec PR: w3c/csswg-drafts#10528 Using a new runtime flag so that it can be backported to M127. Bug: 349653208 Change-Id: Ifce6ee159ca44c5d8a54739ef050354eed5acf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678884 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1323734} -- wpt-commits: bf29ed53ac66890035b47a75d7d84df15245a411 wpt-pr: 47006
The previous fix for using the tree context made it inconsistent with how shadow DOM styling works for things like anchor positioning, and made it so that e.g.
::partcannot set aview-transition-name.Refactored to make the
view-transition-namea tree-scoped name, rather than check the tree context of the element.This aligns better with the existing resolution and should not require a new resolution.
Closes #10145