Skip to content

[web-animations-2] s/animation-trigger-type/animation-trigger-behavior/ #12223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

szager-chromium
Copy link
Contributor

Behavior is a more accurate and intuitive term than type.

Also rewrites the explanations of state, did trigger, and behavior for clarity.

Also fixes some bikeshed linking syntax to point to IDL attributes where appropriate.

@szager-chromium
Copy link
Contributor Author

@flackr PTAL

@szager-chromium
Copy link
Contributor Author

@ydaniv PTAL

@szager-chromium
Copy link
Contributor Author

Preview of the changes:

https://foremost-electric-knuckle.glitch.me/

@ydaniv
Copy link
Contributor

ydaniv commented May 22, 2025

1 note before diving in, animation-trigger-type is also a CSS property, so if we change that name it should also be reflected in css-animations-2.

@flackr
Copy link
Contributor

flackr commented May 22, 2025

When trying to build this locally bikeshed seems to have issues with the &bs'; escape sequence:

LINE 2397:45: Character reference '&bs' didn't end in ;.
LINE 2398:25: Character reference '&bs' didn't end in ;.
LINE 2404:26: Character reference '&bs' didn't end in ;.
LINE 2528:57: Character reference '&bs' didn't end in ;.
LINE 2530:33: Character reference '&bs' didn't end in ;.
LINE 3724:36: Character reference '&bs' didn't end in ;.

However it also shouldn't be necessary to escape apostrophes, should it? When removing I can build and it seems to still have all of the correct linkage. It also seems like there are plenty of unescaped apostrophes in other specs: https://github.com/search?q=repo%3Aw3c%2Fcsswg-drafts+%2F%5Ba-z%5C%5D%5D%27s%2F&type=code

@flackr
Copy link
Contributor

flackr commented May 22, 2025

Am I correct that the substantive change here is the rename to behavior? It looked to me that the other changes were phrasing / syntactic without behavioral changes right?

+1 to @ydaniv's comment that this should update https://drafts.csswg.org/css-animations-2/#animation-trigger-type as well

@szager-chromium
Copy link
Contributor Author

Am I correct that the substantive change here is the rename to behavior? It looked to me that the other changes were phrasing / syntactic without behavioral changes right?

+1 to @ydaniv's comment that this should update https://drafts.csswg.org/css-animations-2/#animation-trigger-type as well

Yes, the substantive change is the rename. I did reorder two of the sections and updated some of the language in ways that I believe add clarity, but the substance is the same.

@szager-chromium
Copy link
Contributor Author

When trying to build this locally bikeshed seems to have issues with the &bs'; escape sequence:

LINE 2397:45: Character reference '&bs' didn't end in ;.
LINE 2398:25: Character reference '&bs' didn't end in ;.
LINE 2404:26: Character reference '&bs' didn't end in ;.
LINE 2528:57: Character reference '&bs' didn't end in ;.
LINE 2530:33: Character reference '&bs' didn't end in ;.
LINE 3724:36: Character reference '&bs' didn't end in ;.

However it also shouldn't be necessary to escape apostrophes, should it? When removing I can build and it seems to still have all of the correct linkage. It also seems like there are plenty of unescaped apostrophes in other specs: https://github.com/search?q=repo%3Aw3c%2Fcsswg-drafts+%2F%5Ba-z%5C%5D%5D%27s%2F&type=code

I was getting bikeshed errors without the quoting. Let me see if I can work around it.

@szager-chromium
Copy link
Contributor Author

1 note before diving in, animation-trigger-type is also a CSS property, so if we change that name it should also be reflected in css-animations-2.

Done.

@szager-chromium
Copy link
Contributor Author

When trying to build this locally bikeshed seems to have issues with the &bs'; escape sequence:

LINE 2397:45: Character reference '&bs' didn't end in ;.
LINE 2398:25: Character reference '&bs' didn't end in ;.
LINE 2404:26: Character reference '&bs' didn't end in ;.
LINE 2528:57: Character reference '&bs' didn't end in ;.
LINE 2530:33: Character reference '&bs' didn't end in ;.
LINE 3724:36: Character reference '&bs' didn't end in ;.

However it also shouldn't be necessary to escape apostrophes, should it? When removing I can build and it seems to still have all of the correct linkage. It also seems like there are plenty of unescaped apostrophes in other specs: https://github.com/search?q=repo%3Aw3c%2Fcsswg-drafts+%2F%5Ba-z%5C%5D%5D%27s%2F&type=code

I was getting bikeshed errors without the quoting. Let me see if I can work around it.

Hmm, the errors are gone for me now so I removed the &bs; syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants