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
+22
Original file line number
Diff line number
Diff line change
@@ -435,6 +435,10 @@ Note: as per default behavior, the ''@view-transition'' rule can be nested insid
435
435
The '<dfn for="@view-transition">type</dfn>' descriptor sets the [=ViewTransition/active types=] for the transition
436
436
when capturing and performing the transition, equivalent to calling {{Document/startViewTransition(callbackOptions)}} with that {{StartViewTransitionOptions/type}}.
437
437
438
+
## Responding to changes in the ''@view-transition'' rule ## {#respond-to-rule-changes}
439
+
440
+
When the ''@view-transition'' rule changes for {{Document}} |document|, [=update the opt-in state for outbound transitions=] given |document|.
441
+
438
442
# API # {#api}
439
443
440
444
## Additions to {{Document}} ## {#additions-to-document-api}
@@ -512,6 +516,12 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
Note: this value can be read [=in parallel=] while navigating.
515
525
</dl>
516
526
517
527
### The View transition params struct ### {#view-transition-params-struct}
@@ -706,6 +716,10 @@ Prepend this to the [=Perform pending transition operations=] algorithm given a
706
716
707
717
1. [=Assert=]: |document| is [=fully active=].
708
718
719
+
1. [=Assert=]: |document| [=has been revealed=] is true.
720
+
721
+
1. [=Update the opt-in state for outbound transitions=] for |document|.
722
+
709
723
1. Let |inboundViewTransitionParams| be |document|'s [=inbound view transition params=].
710
724
711
725
1. If |inboundViewTransitionParams| is null, then return null.
@@ -739,6 +753,14 @@ Prepend this to the [=Perform pending transition operations=] algorithm given a
739
753
1. Return |transition|.
740
754
</div>
741
755
756
+
### Updating the opt-in state for outbound view transitions ### {#update-opt-in-state-for-outbound}
757
+
758
+
<div algorithm="update-opt-in-for-outbound">
759
+
To <dfn>update the opt-in state for outbound transitions</dfn> for a {{Document}} |document|:
760
+
1. If |document| [=has been revealed=], and the result of [=resolve @view-transition rule|resolving the @view-transition rule=] is not "<code>skip transition</code>",
761
+
then set |document|'s [=can initiate outbound view transition=] to true.
762
+
1. Otherwise, set |document|'s [=can initiate outbound view transition=] to false.
0 commit comments