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
[css-view-transitions-1][editorial] More consolidation
* Move conceptual data held on ViewTransition next to the rest of the conceptual data
* Pull “Monkey Patches” section up since it's part of the module's interface with the rest of the world
The [=method steps=] for <dfn method for="ViewTransition">skipTransition()</dfn> are:
990
+
991
+
1. If [=this=]'s [=ViewTransition/phase=] is not "`done`",
992
+
then [=skip the view transition=] for [=this=]
993
+
with an "{{AbortError}}" {{DOMException}}.
994
+
</div>
995
+
996
+
## Integration into Other APIs ## {#monkey-patch-to-rendering-algorithm}
997
+
998
+
<div algorithm="monkey patch to rendering">
999
+
Run the following steps before <a href="https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model:run-the-update-intersection-observations-steps">intersection observer steps</a> in the [=update the rendering=] steps:
1000
+
1001
+
1. For each [=fully active=]{{Document}} in <var ignore>docs</var>,
1002
+
[=perform pending transition operations=] for that {{Document}}.
1003
+
1004
+
Note: These steps will be added to the [=update the rendering=] in the HTML spec.
1005
+
As such, the prose style is written to match other steps in that algorithm.
1006
+
</div>
1007
+
1008
+
<div algorithm="suppress rendering">
1009
+
In the definition for [=rendering opportunity=], add the following condition:
1010
+
1011
+
A navigable has no rendering opportunities if active document has [=document/transition suppressing rendering=] set to true.
1012
+
1013
+
Note: These steps will be added to the [=update the rendering=] in the HTML spec.
1014
+
See <a href="https://github.com/w3c/csswg-drafts/issues/7784">#7884</a> for more context.
1015
+
</div>
1016
+
1017
+
1018
+
# Algorithms # {#algorithms}
1019
+
1020
+
## Data Structures ## {#concepts}
1021
+
1022
+
### Data on {{ViewTransition}} ### {#additions-to-viewtransition}
Note: The position of the [=ViewTransition/transition root pseudo-element=] within the [=document element=] does not matter, as the [=ViewTransition/transition root pseudo-element=]'s [=containing block=] is the [=snapshot containing block=].
1085
1113
</dl>
1086
1114
1087
-
### Additions to Elements ### {#elements-concept}
1115
+
### Data on Elements ### {#elements-concept}
1088
1116
1089
1117
[=/Elements=] have a <dfn export>captured in a view transition</dfn> boolean, initially false.
Note: These are used to update, and later remove styles
1138
1166
from a [=/document=]'s [=document/dynamic view transition style sheet=].
1139
1167
1140
-
## Monkey patches to rendering ## {#monkey-patch-to-rendering-algorithm}
1141
-
1142
-
<div algorithm="monkey patch to rendering">
1143
-
Run the following steps before <a href="https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model:run-the-update-intersection-observations-steps">intersection observer steps</a> in the [=update the rendering=] steps:
1144
-
1145
-
1. For each [=fully active=]{{Document}} in <var ignore>docs</var>,
1146
-
[=perform pending transition operations=] for that {{Document}}.
1147
-
1148
-
Note: These steps will be added to the [=update the rendering=] in the HTML spec.
1149
-
As such, the prose style is written to match other steps in that algorithm.
1150
-
</div>
1151
-
1152
-
<div algorithm="suppress rendering">
1153
-
In the definition for [=rendering opportunity=], add the following condition:
1154
-
1155
-
A navigable has no rendering opportunities if active document has [=document/transition suppressing rendering=] set to true.
1156
-
1157
-
Note: These steps will be added to the [=update the rendering=] in the HTML spec.
1158
-
See <a href="https://github.com/w3c/csswg-drafts/issues/7784">#7884</a> for more context.
0 commit comments