You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+7-7
Original file line number
Diff line number
Diff line change
@@ -886,22 +886,22 @@ and by applying ''view-transition-group'' to the internal element referencing th
886
886
887
887
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.
888
888
889
-
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.
890
-
891
889
<dl dfn-type=value dfn-for=view-transition-group>
892
890
: <dfn>normal</dfn>
893
891
: <dfn>contain</dfn>
894
-
:: The [=used value=] is the element's [=nearest containing group name=] given the [=relevant tree=].
892
+
:: The [=used value=] is the element's [=nearest containing group name=].
895
893
896
894
Note: An element with ''view-transition-group/contain'' becomes the [=nearest containing group name=] for its [=tree/descendants=].
897
895
898
896
: <dfn>nearest</dfn>
899
-
:: The [=used value=] is the 'view-transition-name'[=computed value=] of the nearest [=tree/ancestor=]in the [=relevant tree=]whose 'view-transition-name'[=computed value=] is not ''view-transition-name/none''.
897
+
:: The [=used value=] is the 'view-transition-name'[=computed value=] of the nearest [=tree/ancestor=] whose 'view-transition-name'[=computed value=] is not ''view-transition-name/none''.
900
898
901
899
: <dfn><<custom-ident>></dfn>
902
-
:: The [=used value=] is the given <<custom-ident>> if the element has an [=tree/ancestor=]in the [=relevant tree=]whose 'view-transition-name'[=computed value=] is that <<custom-ident>>, otherwise the element's [=nearest containing group name=] given the [=relevant tree=].
900
+
:: The [=used value=] is the given <<custom-ident>> if the element has an [=tree/ancestor=]whose 'view-transition-name'[=computed value=] is that <<custom-ident>>, otherwise the element's [=nearest containing group name=].
903
901
</dl>
904
902
903
+
When the ''view-transition-group'' and ''view-transition-name'' properties are declared in a different [=tree=], ''view-transition-group'' resolves to the [=nearest containing group name=].
904
+
905
905
# Algorithms # {#algorithms}
906
906
907
907
## Data structures ## {#cross-doc-data-structures}
@@ -1180,9 +1180,9 @@ When capturing the old or new state for an element, perform the following steps
1180
1180
### Compute the nearest containing 'view-transition-group' ### {#vt-group-nearest-contain}
1181
1181
<div algorithm="nearest containing group name">
1182
1182
1183
-
To get the <dfn>nearest containing group name</dfn> for an {{Element}} |element| and a [=tree=] |tree|, perform the following steps:
1183
+
To get the <dfn>nearest containing group name</dfn> for an {{Element}} |element|, perform the following steps:
1184
1184
1185
-
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''.
1185
+
1. Let |nearestAncestorWithContain| be |element|'s nearest [=tree/ancestor=] 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''.
1186
1186
1. If |nearestAncestorWithContain| is null, return ''view-transition-group/none''.
0 commit comments