-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
https://bugs.webkit.org/show_bug.cgi?id=276236 rdar://131139528 Reviewed by NOBODY (OOPS!). Follow w3c/csswg-drafts#10528 * LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/shadow-part-with-name-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/shadow-part-with-name.html: Added. * Source/WebCore/dom/ViewTransition.cpp: (WebCore::effectiveViewTransitionName): (WebCore::ViewTransition::captureOldState): (WebCore::ViewTransition::captureNewState):
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New version looks good, thanks!
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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> 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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1323734}
https://bugs.webkit.org/show_bug.cgi?id=276236 rdar://131139528 Reviewed by NOBODY (OOPS!). Follow w3c/csswg-drafts#10528 * LayoutTests/TestExpectations: * Source/WebCore/dom/ViewTransition.cpp: (WebCore::effectiveViewTransitionName): (WebCore::ViewTransition::captureOldState): (WebCore::ViewTransition::captureNewState): (WebCore::ViewTransition::documentElementIsCaptured const):
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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#1323734} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5679292 Auto-Submit: Noam Rosenthal <[email protected]> Commit-Queue: Khushal Sagar <[email protected]> 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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1323734} -- wpt-commits: bf29ed53ac66890035b47a75d7d84df15245a411 wpt-pr: 47006
…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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> 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 <[email protected]> Reviewed-by: Khushal Sagar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1323734}
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 aview-transition-name
.Refactored to make the
view-transition-name
a 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