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

LibWeb/DOM: Convert elapsedTime to seconds when firing AnimationEvents #3026

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucasChollet
Copy link
Contributor

This makes the two following subtests from
css/css-animations/animationevent-types.html pass:

  • animationend event is instanceof AnimationEvent
  • animationstart event is instanceof AnimationEvent

This makes the two following subtests from
css/css-animations/animationevent-types.html pass:
 - animationend event is instanceof AnimationEvent
 - animationstart event is instanceof AnimationEvent
Copy link
Member

@tcl3 tcl3 left a comment

Choose a reason for hiding this comment

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

Can we include an in-tree test for this?

@@ -2235,7 +2235,7 @@ void Document::dispatch_events_for_animation_if_necessary(GC::Ref<Animations::An
{
{ .bubbles = true },
css_animation.id(),
elapsed_time,
elapsed_time / 1000, // Convert to seconds.
Copy link
Member

Choose a reason for hiding this comment

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

Instead of the inline comment, you could change the variable name here to indicate that it represents milliseconds: elapsed_time_ms, or similar.

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.

2 participants