Skip to content

Commit aec6f8e

Browse files
committed
[scroll-animations-1] names declared with timeline-scope are locally trapped #7759
See #8906 (comment)
1 parent 0cedb31 commit aec6f8e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

scroll-animations-1/Overview.bs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,36 +1260,37 @@ spec: cssom-view-1; type: dfn;
12601260
Animation type: not animatable
12611261
</pre>
12621262

1263-
This property declares the scope of the specified timeline names,
1264-
allowing a named timeline
1263+
This property declares the scope of the specified timeline names
1264+
to extend across this element’s subtree.
1265+
This allows a named timeline
12651266
(such as a [=named scroll progress timeline=] or [=named view progress timeline=])
12661267
to be referenced by elements outside the timeline-defining element’s subtree--
12671268
for example, by siblings, cousins, or ancestors.
1269+
It also blocks descendant timelines with the specified names
1270+
from being referenced from outside this subtree,
1271+
and ancestor timelines with the specified names from being referenced
1272+
within this subtree.
12681273

12691274
Values have the following meanings:
12701275

12711276
<dl dfn-for="timeline-scope" dfn-type=value>
12721277
<dt><dfn>none</dfn>
12731278
<dd>
1274-
No change in name timeline scope.
1279+
No changes in timeline name scope.
12751280

12761281
<dt><dfn><<custom-ident>></dfn>
12771282
<dd>
1278-
Declares the name of a matching named timeline defined by a descendant
1283+
Declares the name of a matching named timeline defined by a descendant--
1284+
whose scope is not already explicitly declared by a descendant using 'timeline-scope'--
12791285
to be in scope for this element and its descendants.
12801286

12811287
If no such timeline exists,
12821288
or if more than one such timeline exists,
12831289
instead declares an [=inactive timeline=] with the specified name.
1284-
1285-
Note: This property has no effect if a matching named timeline
1286-
is defined by this element itself.
12871290
</dl>
12881291

12891292
Note: This property cannot affect or invalidate any timeline name lookups
12901293
within the subtree of a descendant element that declares the same name.
1291-
However, it can prevent matching timelines defined on an ancestor
1292-
from being referenced by this element or its descendants.
12931294
See [[#timeline-scope]].
12941295

12951296
# Changes # {#changes}

0 commit comments

Comments
 (0)