[css-view-transitions-2] Clarify a few nesting details#10964
Conversation
|
|
||
| When the [=computed value=] of 'view-transition-name' for an element is ''view-transition-name/none'', its 'view-transition-group' [=used value=] is always resolved to ''view-transition-name/none'' as well. | ||
|
|
||
| The <dfn>relevant tree</dfn> for the 'view-transition-group' property is the [=tree=] that includes the element in which the property itself is declared. |
There was a problem hiding this comment.
This is trying to capture the tree scope for the computed value right? Would it be enough to say that the used value for group is "normal" if it doesn't match view transition name's scope. Because the group only applies if the name does and we have checks to only apply the name if the tree scope matches the transition's tree scope.
| To get the <dfn>nearest containing group name</dfn> for an {{Element}} |element| and a [=tree=] |tree|, perform the following steps: | ||
|
|
||
| 1. Let |nearestAncestorWithContain| be |element|'s nearest ancestor whose 'view-transition-name' [=computed value=] is not ''view-transition-name/none'' and whose 'view-transition-group' [=computed value=] is ''view-transition-group/contain''. | ||
| 1. Let |nearestAncestorWithContain| be |element|'s nearest [=tree/ancestor=] in |tree|, whose 'view-transition-name' [=computed value=] is not ''view-transition-name/none'' and whose 'view-transition-group' [=computed value=] is not ''view-transition-group/normal''. |
There was a problem hiding this comment.
I don't think we need to pass tree here? We can ignore the group if its computed value's tree scope doesn't match view-transition-name's tree scope.
|
Eh, it looks like you missed publishing new changes. :) |
Oops, look now |
khushalsagar
left a comment
There was a problem hiding this comment.
This is a lot better, thank you!
Co-authored-by: Khushal Sagar <63884798+khushalsagar@users.noreply.github.com>
containfor their descendantsCloses #10780
Closes #10633
See resolutions in the above issues.