Intent to Implement and Ship: ontransition{run, start, cancel} event handler attributes

68 views
Skip to first unread message

Stephen Mcgruer

unread,
Sep 12, 2019, 9:16:36 AM9/12/19
to blink-dev
smcg...@chromium.org N/A - spec has been stable for a long time Specification: https://www.w3.org/TR/css-transitions-1/#event-handlers-on-elements-document-objects-and-window-objects N/A - spec has been stable for a long time The ontransition{run, start, cancel} event handler attributes allow developers to add listeners for the respective events ('transitionrun', 'transitionstart', 'transitioncancel') on elements, Document objects, and Window objects. An example of how this might be used: target.ontransitioncancel = () => { console.log('transition was cancelled!'); } These features are part of the stable css-transitions-1 spec, and have shipped in other browsers a long time ago.
Edge: No public signals. Edge has not yet shipped these attributes; I have not confirmed their public views but can do so if desired. Safari: Shipped (https://wpt.fyi/results/css/css-transitions/idlharness.html?label=master&product=chrome%5Bexperimental%5D&product=safari%5Bstable%5D&product=firefox%5Bstable%5D&product=edge%5Bstable%5D&aligned)
Web developers: No signals No known ergonomic risks - similar APIs already exist (ontransitionend) and we already fire these events for events registered with addEventListener. No known activation risks. No known security risks.
Yes Yes https://wpt.fyi/results/css/css-transitions/idlharness.html?label=master&product=chrome%5Bexperimental%5D&product=safari%5Bstable%5D&product=firefox%5Bstable%5D&product=edge%5Bstable%5D&aligned https://crbug.com/868224 https://www.chromestatus.com/feature/5354694014664704
This intent message was generated by Chrome Platform Status.

Robert Flack

unread,
Sep 12, 2019, 9:26:41 AM9/12/19
to Stephen Mcgruer, blink-dev
Non owner LGTM, IMO these should have been shipped at the same time as their corresponding transition events but we (I) missed this at the time.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADY3MadbtO6%3DLV3gKTT6HUOTAaHzwO1hTYNOhmhXf20pJA%2Bg6A%40mail.gmail.com.

Daniel Bratell

unread,
Sep 12, 2019, 9:35:51 AM9/12/19
to Stephen Mcgruer, Robert Flack, blink-dev
LGTM1

/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJh39TPzj-M_50bKairJNuM8AwGsJ%2B0bcXyxJcNJAoDb0D461Q%40mail.gmail.com.



--
/* Opera Software, Linköping, Sweden: CEST (UTC+2) */

Yoav Weiss

unread,
Sep 12, 2019, 12:07:51 PM9/12/19
to Daniel Bratell, Stephen Mcgruer, Robert Flack, blink-dev

Ojan Vafai

unread,
Sep 12, 2019, 4:16:40 PM9/12/19
to Yoav Weiss, Daniel Bratell, Stephen Mcgruer, Robert Flack, blink-dev
Reply all
Reply to author
Forward
0 new messages