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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -645,6 +645,8 @@ div.box {
645
645
:: All of the specified <<custom-ident>> values (apart from <css>none</css>) are applied when used in [=named view transition pseudo-element=] selectors.
646
646
<css>none</css> is an invalid <<custom-ident>> for 'view-transition-class', even when combined with another <<custom-ident>>.
647
647
648
+
Each 'view transition class' is a [=tree-scoped name=].
649
+
648
650
Note: If the same 'view-transition-name' is specified for an element both in the old and new states of the transition,
649
651
only the 'view-transition-class' values from the new state apply. This also applies for cross-document view transitions:
650
652
classes from the old document would only apply if their corresponding 'view-transition-name' was not specified in the new document.
@@ -978,7 +980,7 @@ Prepend the following step to the [=Perform pending transition operations=] algo
978
980
<div algorithm="additional capture steps">
979
981
When capturing the old or new state for an element, perform the following steps given a [=captured element=] |capture| and an [=element=] |element|:
980
982
981
-
1. Set |capture|'s [=captured element/class list=] to the [=computed value=] of |element|'s 'view-transition-class'.
983
+
1. Set |capture|'s [=captured element/class list=] to the [=computed value=] of |element|'s 'view-transition-class', if it is associated with |element|'s [=node document=].
982
984
983
985
Note: This is written in a monkey-patch manner, and will be merged into the algorithm once the L1 spec graduates.
0 commit comments