Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion css-view-transitions-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,35 @@ spec:css2; type:dfn; text:viewport
: <dfn>none</dfn>
:: The [=/element=] will not participate independently in a view transition.

: <dfn>match-element</dfn>
:: The [=/element=] will participate in the transition
with a user-agent generated name that is unique to the [=/element=].

<div class="example">
```html
<style>
.card {
view-transition-name: match-element;
}
</style>
<div id=e1 class=card>Card 1</div>
<div id=e2 class=card>Card 2</div>
```
In this example, both `#e1` and `#e2` participate in the transition and match against
themselves: `#e1` matches with `#e1` and `#e2` matches with `#e2` since they have unique
persistent names. In effect, this allows view transition to animate the visual change
in several elements with a simple rule.
</div>


: <dfn><<custom-ident>></dfn>
:: The [=/element=] participates independently in a view transition--
as either an old or new [=/element=]--
with the specified [=view transition name=].

Each [=view transition name=] is a [=tree-scoped name=].

The values <css>none</css>, <css>auto</css>, and <css>match-element</css> are excluded from <<custom-ident>> here.
The values <css>none</css>, and <css>auto</css>, excluded from <<custom-ident>> here.

Note: If this name is not unique
(i.e. if two elements simultaneously specify the same [=view transition name=])
Expand Down