Skip to content

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

Merged
flackr merged 3 commits into
w3c:mainfrom
szager-chromium:animation-trigger-behavior
May 26, 2025
Merged

flackr merged 3 commits into
w3c:mainfrom
szager-chromium:animation-trigger-behavior

Conversation

@szager-chromium

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@flackr PTAL

@szager-chromium

Copy link
Copy Markdown
Contributor Author

@ydaniv PTAL

@szager-chromium

Copy link
Copy Markdown
Contributor Author
@ydaniv

ydaniv commented May 22, 2025

Copy link
Copy Markdown
Member

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

flackr commented May 22, 2025 •

Copy link
Copy Markdown
Contributor

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

Comment thread web-animations-2/Overview.bs Resolved
@flackr

flackr commented May 22, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@flackr
flackr merged commit f73b91a into w3c:main May 26, 2025
aarongable pushed a commit to chromium/chromium that referenced this pull request Jun 25, 2025
This follows the analogous spec change:

w3c/csswg-drafts#12223

Bug: chromium:390314945
Change-Id: I3e159a5d2d4d8c82a6a68b3058fbd40ef85ceade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6664144
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1478613}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 25, 2025
This follows the analogous spec change:

w3c/csswg-drafts#12223

Bug: chromium:390314945
Change-Id: I3e159a5d2d4d8c82a6a68b3058fbd40ef85ceade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6664144
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1478613}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 25, 2025
This follows the analogous spec change:

w3c/csswg-drafts#12223

Bug: chromium:390314945
Change-Id: I3e159a5d2d4d8c82a6a68b3058fbd40ef85ceade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6664144
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1478613}
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Jul 4, 2025
…on-trigger-behavior, a=testonly

Automatic update from web-platform-tests
Rename animation-trigger-type to animation-trigger-behavior

This follows the analogous spec change:

w3c/csswg-drafts#12223

Bug: chromium:390314945
Change-Id: I3e159a5d2d4d8c82a6a68b3058fbd40ef85ceade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6664144
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1478613}

--

wpt-commits: e10bf61f6fa847c25dfc1702af774330a2038fb4
wpt-pr: 53388
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 4, 2025
…on-trigger-behavior, a=testonly

Automatic update from web-platform-tests
Rename animation-trigger-type to animation-trigger-behavior

This follows the analogous spec change:

w3c/csswg-drafts#12223

Bug: chromium:390314945
Change-Id: I3e159a5d2d4d8c82a6a68b3058fbd40ef85ceade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6664144
Reviewed-by: David Awogbemila <awogbemila@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1478613}

--

wpt-commits: e10bf61f6fa847c25dfc1702af774330a2038fb4
wpt-pr: 53388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants