Skip to content

Commit 2490a20

Browse files
noamrvmpstr
andauthored
[css-view-transitions-2] view-transition-name: auto with ID should only match other IDs (w3c#11930)
* [css-view-transitions-2] `view-transition-name: auto` with ID should only match other IDs Closes w3c#11614 * Update css-view-transitions-2/Overview.bs Co-authored-by: vmpstr <vmpstr@chromium.org> * Update Overview.bs --------- Co-authored-by: vmpstr <vmpstr@chromium.org>
1 parent ef0d7da commit 2490a20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ To resolve the [=used value=] of 'view-transition-name' for |element|:
815815
1. If |computed| is <css>none</css>, return null.
816816
1. If |computed| is a <<custom-ident>>, return |computed|.
817817
1. Assert: |computed| is <css>auto</css> or <css>match-element</css>.
818-
1. If |computed| is <css>auto</css>, |element| has an associated [=Element/id=], and |computed| is associated with the same [=tree/root=] as |element|'s [=tree/root=], then return the value of |element|'s [=Element/id=].
818+
1. If |computed| is <css>auto</css>, |element| has an associated [=Element/id=], and |computed| is associated with the same [=tree/root=] as |element|'s [=tree/root=], then return a unique string.
819+
Two elements with the same [=Element/id=] must return the same string, regardless of their [=node document=].
819820

820821
Note: this means that a ''::part()'' pseudo-element wouldn't resolve to its matching element's [=Element/id=].
821822

0 commit comments

Comments
 (0)