Skip to content

Commit 463e82c

Browse files
committed
[css-view-transitions-1][editorial] Minor wording tweaks and markup fixes
1 parent 7191f13 commit 463e82c

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
10921092
:: A boolean. Initially false.
10931093

10941094
When this is true, [=this=]'s [=active view transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
1095-
and [=this=]'s [=document element=] is its [=originating element=].
1095+
with [=this=]'s [=document element=] is its [=originating element=].
10961096

10971097
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=].
10981098
</dl>
@@ -1179,7 +1179,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
11791179
1. If |document|'s [=document/active view transition=] is not null, then:
11801180

11811181
1. If |document|'s [=document/active view transition=]'s [=ViewTransition/phase=] is "`pending-capture`",
1182-
then [=setup view transition=] with |document|'s [=document/active view transition=].
1182+
then [=setup view transition=] for |document|'s [=document/active view transition=].
11831183

11841184
1. Otherwise, if |document|'s [=document/active view transition=]'s [=ViewTransition/phase=] is "`animating`",
11851185
then [=handle transition frame=] for |document|'s [=document/active view transition=].
@@ -1188,7 +1188,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
11881188
## [=Setup view transition=] ## {#setup-view-transition-algorithm}
11891189

11901190
<div algorithm>
1191-
To <dfn>setup view transition</dfn> given a {{ViewTransition}} |transition|,
1191+
To <dfn>setup view transition</dfn> for a {{ViewTransition}} |transition|,
11921192
perform the following steps:
11931193

11941194
Note: This algorithm captures the current state of the document,
@@ -1330,9 +1330,9 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
13301330
|element|'s [=border box=] from the [=snapshot containing block origin=] to its
13311331
current visual position.
13321332

1333-
1. Set |capture|'s [=captured element/old writing-mode] to the [=computed value=] of 'writing-mode' on |element|.
1333+
1. Set |capture|'s [=captured element/old writing-mode=] to the [=computed value=] of 'writing-mode' on |element|.
13341334

1335-
1. Set |capture|'s [=captured element/old direction] to the [=computed value=] of 'direction' on |element|.
1335+
1. Set |capture|'s [=captured element/old direction=] to the [=computed value=] of 'direction' on |element|.
13361336

13371337
1. Set |namedElements|[|transitionName|] to |capture|.
13381338
</div>
@@ -1400,7 +1400,8 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
14001400

14011401
1. Let |old| be a new ''::view-transition-old()'',
14021402
with its [=view transition name=] set to |transitionName|,
1403-
displaying |capturedElement|'s [=captured element/old image=].
1403+
displaying |capturedElement|'s [=captured element/old image=]
1404+
as its [=replaced element|replaced=] content.
14041405

14051406
1. Append |old| to |imagePair|.
14061407

@@ -1416,7 +1417,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
14161417
The [=new element=] and its contents
14171418
(the flat tree descendants of the element, including both text and elements, or the replaced content of a replaced element),
14181419
except the |transition|'s [=ViewTransition/transition root pseudo-element=]'s [=tree/inclusive descendants=],
1419-
are not painted (as if they had visibility: hidden)
1420+
are not painted (as if they had ''visibility: hidden'')
14201421
and do not respond to hit-testing (as if they had pointer-events: none) until |new| exists.
14211422

14221423
1. If both of |capturedElement|'s [=captured element/old image=] and [=captured element/new element=]
@@ -1481,7 +1482,10 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
14811482

14821483
Note: The above code example contains variables to be replaced.
14831484

1484-
Note: ''mix-blend-mode: plus-lighter'' ensures that the blending of identical pixels from the old and new images results in the same color value as those pixels, and achieves a "correct" cross-fade.
1485+
Note: ''mix-blend-mode: plus-lighter'' ensures
1486+
that the blending of identical pixels from the old and new images
1487+
results in the same color value as those pixels,
1488+
and achieves a “correct” cross-fade.
14851489
</div>
14861490

14871491
## [=Call the update callback=] ## {#call-dom-update-callback-algorithm}
@@ -1557,7 +1561,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
15571561

15581562
1. If |element| is the [=document element=], then:
15591563

1560-
1. Render the region of the |element| and the [/=document=]'s [=Document/top layer=] that intersects the [=snapshot containing block=],
1564+
1. Render the region of the |element| and the [=/document=]'s [=Document/top layer=] that intersects the [=snapshot containing block=],
15611565
on a transparent canvas the size of the [=snapshot containing block=],
15621566
following the [=capture rendering characteristics=], and these additional characteristics:
15631567

0 commit comments

Comments
 (0)