[css-animations-2] Define trigger scope#13241
Merged
Merged
Conversation
vmpstr
reviewed
Dec 18, 2025
flackr
reviewed
Dec 18, 2025
| This property scopes [=trigger names=] to the subtree of the matching element. | ||
|
|
||
| The values have same meaning as with the [[css-anchor-position-1#anchor-scope|anchor-scope]] | ||
| property. Thus, the following description of their meaning is similar to the anchor-scope text: |
Contributor
There was a problem hiding this comment.
I think this line can be removed.
|
|
||
| All [=trigger names=] are document-global by default, | ||
| similar to <l spec="css-anchor-position-1">[=anchor names=]</l>, but may be | ||
| scoped by [[#trigger-scope| trigger-scope]]. |
Contributor
There was a problem hiding this comment.
This line is confusing, anchor names can also be scoped. I think simplest would be to just remove it. If there is any cross referencing, I could see the anchor scope spec calling out how unlike timeline-scope and trigger-scope it has additional restrictions.
Contributor
Author
There was a problem hiding this comment.
Sounds good. I kept the "document-global" part as I don't think that's called out elsewhere... or is that covered by the "tree-scoped" references?
tabatkins
reviewed
Dec 19, 2025
Combine some sections and reword a few bits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We resolved to have a name scoping property for animation triggers and have it behave like anchor-scope.