Closed Bug 1929118 Opened 1 year ago Closed 2 months ago

[css-animations-2][css-transitions-2] Add animation object to animation/transition events.

Categories

(Core :: CSS Transitions and Animations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: canalun)

References

(Blocks 2 open bugs)

Details

(Keywords: dev-doc-complete)

Attachments

(3 files)

A resolution was made for csswg-drafts/#9010.

[css-animations-2][css-transitions-2] Add animation object to animation/transition events.

  • RESOLVED: Add an animation property to the animation*/transition* events that contains the relevant Animation object (CSSAnimation and CSSTransition respectively)

Discussion.

Type: defect → enhancement
Component: Layout → CSS Transitions and Animations

In the subsequent patch, animation property will be added in AnimationEvent and TransitionEvent.
This patch adds tests for that.

Assignee: nobody → i.am.kanaru.sato
Status: NEW → ASSIGNED

This patch adds animation property to AnimationEvent and TransitionEvent.
This prop has the corresponding CSSAnimation and CSSTransition respectively.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f91a43064d99 https://hg.mozilla.org/integration/autoland/rev/56704568a20a Add tests for animation property of AnimationEvent and TransitionEvent. r=birtles https://github.com/mozilla-firefox/firefox/commit/5b0bd23c7d00 https://hg.mozilla.org/integration/autoland/rev/e5b1938e4631 Add animation property to AnimationEvent and TransitionEvent. r=birtles,webidl,smaug
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dae6164359c0 https://hg.mozilla.org/integration/autoland/rev/8fcee53df007 Revert "Bug 1929118 - Add animation property to AnimationEvent and TransitionEvent. r=birtles,webidl,smaug" for causing failures complaining about Animation bfcache.

Thank you, I'll fix it.

Flags: needinfo?(i.am.kanaru.sato)
Pushed by arai_a@mac.com: https://github.com/mozilla-firefox/firefox/commit/238e07aff6e9 https://hg.mozilla.org/integration/autoland/rev/f8c4fdcf52fd Add tests for animation property of AnimationEvent and TransitionEvent. r=birtles https://github.com/mozilla-firefox/firefox/commit/794e47d452ac https://hg.mozilla.org/integration/autoland/rev/f9b58ec81b5b Add animation property to AnimationEvent and TransitionEvent. r=birtles,webidl,smaug

Re-landed given:

  • bug 2027803 is also backed out for the same failure
  • bug 2027803 is landed before this bug's patches, and backed out after them
  • The failure itself is pre-existing intermittent failure

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59512 for changes under testing/web-platform/tests

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Upstream PR merged by moz-wptsync-bot

Keywords: dev-doc-needed

As a follow-up on D295112, this patch removes the inclusion of CSS(Animation|Transition)
headers from ContentEvents.h by forward-declaring those classes and moving the implementations
that require complete types into a new ContentEvents.cpp. This also required the followings:

  • moving AnimationEventDispatcher::Dispatch() out of the header, because it also needs the
    full definitions of CSS(Animation|Transition).
  • adding CSS(Animation|Transition) headers to Event.cpp, which needs the full definitions and
    had obtained them by including ContentEvents.h before this patch.

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/14ddbe307cc4 https://hg.mozilla.org/integration/autoland/rev/e5e8a9faca3b Stop including CSS(Animation|Transition) headers from ContentEvents header. r=emilio,masayuki
QA Whiteboard: [qa-triage-done-c153/b152]

FF152 MDN Docs work for this can be tracked in https://github.com/mdn/content/issues/44164

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: