Skip to content

Commit f355c88

Browse files
committed
[css-view-transitions-1][editorial] Consolidate data structures with the algorithms that use them.
And pull out Monkey Patches into a top-level section, since they're also effectively interfaces with the world outside this spec.
1 parent afaa5bd commit f355c88

File tree

1 file changed

+87
-87
lines changed

1 file changed

+87
-87
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 87 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -873,93 +873,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
873873
Additional styles are dynamically added to the [=user-agent origin=] during a [=view transition=]
874874
through the [=document/dynamic view transition style sheet=].
875875

876-
# Concepts # {#concepts}
877-
878-
## Elements ## {#elements-concept}
879-
880-
[=/Elements=] have a <dfn export>captured in a view transition</dfn> boolean, initially false.
881-
882-
Note: This spec uses CSS's definition of [=element=], which includes [=pseudo-elements=].
883-
884-
## [=Captured elements=] ## {#captured-elements}
885-
886-
A <dfn>captured element</dfn> is a [=struct=] with the following:
887-
888-
<dl dfn-for="captured element">
889-
: <dfn>old image</dfn>
890-
:: an {{ImageData}} or null. Initially null.
891-
892-
: <dfn>old width</dfn>
893-
: <dfn>old height</dfn>
894-
:: an {{unrestricted double}}, initially zero.
895-
896-
: <dfn>old transform</dfn>
897-
:: a <a data-xref-type="css-type">&lt;transform-function&gt;</a>, initially the [=identity transform function=].
898-
899-
: <dfn>old writing-mode</dfn>
900-
:: Null or a 'writing-mode', initially null.
901-
902-
: <dfn>old direction</dfn>
903-
:: Null or a 'direction', initially null.
904-
905-
: <dfn>new element</dfn>
906-
:: an [=/element=] or null. Initially null.
907-
</dl>
908-
909-
In addition, a [=captured element=] has the following <dfn for="captured element">style definitions</dfn>:
910-
911-
<dl dfn-for="captured element">
912-
: <dfn>group keyframes</dfn>
913-
:: A {{CSSKeyframesRule}} or null. Initially null.
914-
915-
: <dfn>group animation name rule</dfn>
916-
:: A {{CSSStyleRule}} or null. Initially null.
917-
918-
: <dfn>group styles rule</dfn>
919-
:: A {{CSSStyleRule}} or null. Initially null.
920-
921-
: <dfn>image pair isolation rule</dfn>
922-
:: A {{CSSStyleRule}} or null. Initially null.
923-
924-
: <dfn>view blend mode rule</dfn>
925-
:: A {{CSSStyleRule}} or null. Initially null.
926-
</dl>
927-
928-
Note: These are used to update, and later remove styles
929-
from a [=/document=]'s [=document/dynamic view transition style sheet=].
930-
931-
## Additions to {{Document}} ## {#additions-to-document}
932-
933-
A {{Document}} additionally has:
934-
935-
<dl dfn-for=document>
936-
: <dfn>active view transition</dfn>
937-
:: a {{ViewTransition}} or null. Initially null.
938-
939-
: <dfn>transition suppressing rendering</dfn>
940-
:: a boolean. Initially false.
941-
942-
While a {{Document}}’s [=document/transition suppressing rendering=] is true,
943-
all pointer hit testing must target its [=document element=],
944-
ignoring all other [=elements=].
945-
946-
Note: This does not affect pointers that are [=pointer capture|captured=].
947-
948-
: <dfn>dynamic view transition style sheet</dfn>
949-
:: a [=/style sheet=].
950-
Initially a new [=/style sheet=] in the [=user-agent origin=], ordered after the [=global view transition user agent style sheet=].
951-
952-
Note: This is used to hold dynamic styles relating to transitions.
953-
954-
: <dfn>show view-transition root pseudo-element</dfn>
955-
:: A boolean. Initially false.
956-
957-
When this is true, [=this=]'s [=active view transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
958-
and [=this=]'s [=document element=] is its [=originating element=].
959-
960-
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=].
961-
</dl>
962-
963876
# API # {#api}
964877

965878
## Additions to {{Document}} ## {#additions-to-document-api}
@@ -1140,6 +1053,93 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
11401053

11411054
# Algorithms # {#algorithms}
11421055

1056+
## Data Structures ## {#concepts}
1057+
1058+
### Additions to {{Document}} ### {#additions-to-document}
1059+
1060+
A {{Document}} additionally has:
1061+
1062+
<dl dfn-for=document>
1063+
: <dfn>active view transition</dfn>
1064+
:: a {{ViewTransition}} or null. Initially null.
1065+
1066+
: <dfn>transition suppressing rendering</dfn>
1067+
:: a boolean. Initially false.
1068+
1069+
While a {{Document}}’s [=document/transition suppressing rendering=] is true,
1070+
all pointer hit testing must target its [=document element=],
1071+
ignoring all other [=elements=].
1072+
1073+
Note: This does not affect pointers that are [=pointer capture|captured=].
1074+
1075+
: <dfn>dynamic view transition style sheet</dfn>
1076+
:: a [=/style sheet=].
1077+
Initially a new [=/style sheet=] in the [=user-agent origin=], ordered after the [=global view transition user agent style sheet=].
1078+
1079+
Note: This is used to hold dynamic styles relating to transitions.
1080+
1081+
: <dfn>show view-transition root pseudo-element</dfn>
1082+
:: A boolean. Initially false.
1083+
1084+
When this is true, [=this=]'s [=active view transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
1085+
and [=this=]'s [=document element=] is its [=originating element=].
1086+
1087+
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=].
1088+
</dl>
1089+
1090+
### Additions to Elements ### {#elements-concept}
1091+
1092+
[=/Elements=] have a <dfn export>captured in a view transition</dfn> boolean, initially false.
1093+
1094+
Note: This spec uses CSS's definition of [=element=], which includes [=pseudo-elements=].
1095+
1096+
### [=Captured elements=] ### {#captured-elements}
1097+
1098+
A <dfn>captured element</dfn> is a [=struct=] with the following:
1099+
1100+
<dl dfn-for="captured element">
1101+
: <dfn>old image</dfn>
1102+
:: an {{ImageData}} or null. Initially null.
1103+
1104+
: <dfn>old width</dfn>
1105+
: <dfn>old height</dfn>
1106+
:: an {{unrestricted double}}, initially zero.
1107+
1108+
: <dfn>old transform</dfn>
1109+
:: a <a data-xref-type="css-type">&lt;transform-function&gt;</a>, initially the [=identity transform function=].
1110+
1111+
: <dfn>old writing-mode</dfn>
1112+
:: Null or a 'writing-mode', initially null.
1113+
1114+
: <dfn>old direction</dfn>
1115+
:: Null or a 'direction', initially null.
1116+
1117+
: <dfn>new element</dfn>
1118+
:: an [=/element=] or null. Initially null.
1119+
</dl>
1120+
1121+
In addition, a [=captured element=] has the following <dfn for="captured element">style definitions</dfn>:
1122+
1123+
<dl dfn-for="captured element">
1124+
: <dfn>group keyframes</dfn>
1125+
:: A {{CSSKeyframesRule}} or null. Initially null.
1126+
1127+
: <dfn>group animation name rule</dfn>
1128+
:: A {{CSSStyleRule}} or null. Initially null.
1129+
1130+
: <dfn>group styles rule</dfn>
1131+
:: A {{CSSStyleRule}} or null. Initially null.
1132+
1133+
: <dfn>image pair isolation rule</dfn>
1134+
:: A {{CSSStyleRule}} or null. Initially null.
1135+
1136+
: <dfn>view blend mode rule</dfn>
1137+
:: A {{CSSStyleRule}} or null. Initially null.
1138+
</dl>
1139+
1140+
Note: These are used to update, and later remove styles
1141+
from a [=/document=]'s [=document/dynamic view transition style sheet=].
1142+
11431143
## Monkey patches to rendering ## {#monkey-patch-to-rendering-algorithm}
11441144

11451145
<div algorithm="monkey patch to rendering">

0 commit comments

Comments
 (0)