Skip to content

Commit 951bab3

Browse files
authored
[css-view-transitions-2] view-transition-class is a tree-scoped name (#10719)
* [css-view-transitions-2] `view-transition-class` is a tree-scoped name Resolution: #10529 (comment) Closes #10529 * Apply to algorithm
1 parent ead8668 commit 951bab3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ div.box {
645645
:: All of the specified <<custom-ident>> values (apart from <css>none</css>) are applied when used in [=named view transition pseudo-element=] selectors.
646646
<css>none</css> is an invalid <<custom-ident>> for 'view-transition-class', even when combined with another <<custom-ident>>.
647647

648+
Each 'view transition class' is a [=tree-scoped name=].
649+
648650
Note: If the same 'view-transition-name' is specified for an element both in the old and new states of the transition,
649651
only the 'view-transition-class' values from the new state apply. This also applies for cross-document view transitions:
650652
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
978980
<div algorithm="additional capture steps">
979981
When capturing the old or new state for an element, perform the following steps given a [=captured element=] |capture| and an [=element=] |element|:
980982

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=].
982984

983985
Note: This is written in a monkey-patch manner, and will be merged into the algorithm once the L1 spec graduates.
984986
</div>

0 commit comments

Comments
 (0)