Skip to content

Commit

Permalink
Fragmented elements don't participate in view transitions.
Browse files Browse the repository at this point in the history
Closes w3c#8339
  • Loading branch information
noamr committed May 12, 2023
1 parent 14a0f8c commit d22c39b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions css-view-transitions-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,19 +1243,17 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;

1. If any [=flat tree=] ancestor of this |element| [=skips its contents=], then [=continue=].

1. If |element| is not |element|'s [=tree/root=] and |element| allows [=fragmentation=], then [=continue=].

Issue: We might want to enable transitions for fragmented elements in future versions.

1. Let |transitionName| be the [=computed value=] of 'view-transition-name' for |element|.

1. If |transitionName| is ''view-transition-name/none'',
or |element| is [=element-not-rendered|not rendered=],
then [=continue=].

1. If any of the following is true:

* |usedTransitionNames| [=list/contains=] |transitionName|.

* |element| is not |element|'s [=tree/root=] and |element| allows [=fragmentation=].

Then return failure.
1. If |usedTransitionNames| [=list/contains=] |transitionName|, then return failure.

1. [=set/Append=] |transitionName| to |usedTransitionNames|.

Expand Down Expand Up @@ -1794,6 +1792,7 @@ Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221
* When skipping a transition, the {{UpdateCallback}} is called in own task rather than synchronosly. See <a href="https://github.com/w3c/csswg-drafts/issues/7904">issue 7904</a>
* When capturing images, at least the in-viewport part of the image should be captured, downscale if needed. See <a href="https://github.com/w3c/csswg-drafts/issues/8561">issue 8561</a>.
* Applying the [=ink overflow=] to the captured image is implementation defined, and doesn't affect the image's [=natural size=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8597">issue 8597</a>.
* Fragmented elements don't participate in view transitions. See <a href="https://github.com/w3c/csswg-drafts/issues/8339">issue 8339</a>.

<h3 id="changes-since-2022-10-25">
Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221025/">2022-10-25 Working Draft (FPWD)</a>
Expand Down

0 comments on commit d22c39b

Please sign in to comment.