Skip to content

Commit f9c1622

Browse files
authored
[css-view-transitions-1] Perform the visibility change steps in own task (w3c#10168)
This doesn't change observable behavior, but makes the visibility reaction consistent with other similar reactions. See whatwg/html#10137
1 parent dcc8029 commit f9c1622

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,11 +1672,15 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
16721672
<div algorithm>
16731673
The <dfn export>view transition page-visibility change steps</dfn> given {{Document}} |document| are:
16741674

1675-
1. If |document|'s [=Document/visibility state=] is "<code>hidden</code>", then:
1675+
1. [=Queue a global task=] on the [=DOM manipulation task source=],
1676+
given |document|'s [=relevant global object=],
1677+
to perform the following steps:
1678+
1679+
1. If |document|'s [=Document/visibility state=] is "<code>hidden</code>", then:
16761680

1677-
1. If |document|'s [=active view transition=] is not null, then [=skip the view transition|skip=] |document|'s [=active view transition=] with an "{{InvalidStateError}}" {{DOMException}}.
1681+
1. If |document|'s [=active view transition=] is not null, then [=skip the view transition|skip=] |document|'s [=active view transition=] with an "{{InvalidStateError}}" {{DOMException}}.
16781682

1679-
1. Otherwise, [=assert=]: [=active view transition=] is null.
1683+
1. Otherwise, [=assert=]: [=active view transition=] is null.
16801684

16811685
Note: this is called from the HTML spec.
16821686
</div>

0 commit comments

Comments
 (0)