[Bug 17301] New: a "transitioncancel" event to listen for when a transition is removed before completion

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17301

           Summary: a "transitioncancel" event to listen for when a
                    transition is removed before completion
           Product: CSS
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Transitions
        AssignedTo: dino@apple.com
        ReportedBy: jacobthornton@gmail.com
         QAContact: public-css-bugzilla@w3.org
                CC: cmarrin@apple.com, eoconnor@apple.com, smfr@me.com


Currently the only event provided to JavaScript is the transitionend event.

>From the spec:
In the case where a transition is removed before completion, such as if the
transition-property is removed, then the event will not fire.

Because of the potential for events not to fire, when developing with
transitionend events, you are often left with unfulfilled callbacks which are
important to your application. 

Consider Twitter Bootstrap. We have a tooltip plugin which relies on the
transitionend event to remove a tooltip from the dom. If a user aggressively
mouses in and out of a tooltip target, eventually they will enter a state where
the event is simply not fired, leaving zombie tooltips all over the screen.

Proposal:
We desperately need a reliable way to solve for this use case. I'm proposing a
"transitioncancel" event to listen for when a transition is removed before
completion.

Basically when i set up the expectation for a transition to happen in
javascript, i need a way to know if my transition is not going to happen or if
it has already taken place.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 3 June 2012 19:08:16 UTC