Skip to content

Commit 512a595

Browse files
committed
[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
1 parent 6afcbc9 commit 512a595

File tree

1 file changed

+46
-23
lines changed

1 file changed

+46
-23
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,50 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
977977
If {{ViewTransition/finished}} hasn't resolved, it will fulfill or reject along with {{ViewTransition/updateCallbackDone}}.
978978
</dl>
979979

980+
The {{ViewTransition/finished}} [=getter steps=] are to return [=this's=] [=ViewTransition/finished promise=].
981+
982+
The {{ViewTransition/ready}} [=getter steps=] are to return [=this's=] [=ViewTransition/ready promise=].
983+
984+
The {{ViewTransition/updateCallbackDone}} [=getter steps=] are to return [=this's=] [=ViewTransition/update callback done promise=].
985+
986+
### {{ViewTransition/skipTransition()}} Method Steps ### {#ViewTransition-skipTransition}
987+
988+
<div algorithm>
989+
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}
1023+
9801024
A {{ViewTransition}} has the following:
9811025

9821026
<dl dfn-for="ViewTransition">
@@ -1052,7 +1096,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
10521096

10531097
## Data Structures ## {#concepts}
10541098

1055-
### Additions to {{Document}} ### {#additions-to-document}
1099+
### Data on {{Document}} ### {#additions-to-document}
10561100

10571101
A {{Document}} additionally has:
10581102

@@ -1084,7 +1128,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
10841128
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=].
10851129
</dl>
10861130

1087-
### Additions to Elements ### {#elements-concept}
1131+
### Data on Elements ### {#elements-concept}
10881132

10891133
[=/Elements=] have a <dfn export>captured in a view transition</dfn> boolean, initially false.
10901134

@@ -1137,27 +1181,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
11371181
Note: These are used to update, and later remove styles
11381182
from a [=/document=]'s [=document/dynamic view transition style sheet=].
11391183

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.
1159-
</div>
1160-
11611184
## [=Perform pending transition operations=] ## {#perform-pending-transition-operations-algorithm}
11621185

11631186
<div algorithm>

0 commit comments

Comments
 (0)