Skip to content
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

Demix animation events from GlobalEventHandlers #16531

Merged
merged 12 commits into from Jul 14, 2022

Conversation

queengooborg
Copy link
Collaborator

This PR demixes the animation event handlers from the GlobalEventHandlers mixin. There were some odd discrepancies between the events already on the interfaces. Here's what I found:

The animation events were set to 43, however the event handlers said they were added in 43 only on Window then 79 everywhere else. After some further research, it appears that the events were added in 43, and then the event handlers were added later other than for Window.

Additionally, the Window event had prefixes added to them, which came from #3563. However, this appears to have been a mistake; the same PR added the features for Document and HTMLElement which don't have the prefix data, and the description indicates intention to remove it. I've removed it here.

@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 3, 2022
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

This pull request has merge conflicts that must be resolved before it can be merged.

@queengooborg queengooborg added the needs content update 📝 This PR needs a corresponding update to mdn/content to update the documentation label Jun 13, 2022
@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

1 similar comment
@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

Copy link
Collaborator

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like with most bubbling events we have too many entries. I've read https://drafts.csswg.org/css-animations/#events and Chromium's implementation, and it looks like the event target is always an Element for these events. Can you move the 4 entries to Element and remove everything else?

api/Document.json Outdated Show resolved Hide resolved
@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

@queengooborg queengooborg requested a review from foolip July 11, 2022 07:09
api/Element.json Outdated Show resolved Hide resolved
@github-actions
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

@queengooborg queengooborg removed the needs content update 📝 This PR needs a corresponding update to mdn/content to update the documentation label Jul 12, 2022
@queengooborg queengooborg merged commit 7110f27 into mdn:main Jul 14, 2022
@queengooborg queengooborg deleted the api/GlobalEventHandlers/animation branch July 14, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants