Commit bedafb8a authored by George Steel's avatar George Steel Committed by Commit Bot

Reland "Add ontransition{run, start, cancel} to GlobalEventHandlers"

https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl

Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/dxDGBFKvO3A

Original CL: https://chromium-review.googlesource.com/c/chromium/src/+/1797226
Original Revert: https://chromium-review.googlesource.com/c/chromium/src/+/1816818

Bug: 868224
Change-Id: I1f83765f31ba7f0902b0fdb1688e206f509f5664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2258467Reviewed-by: default avatarKevin Ellis <kevers@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarJoey Arhar <jarhar@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: George Steel <gtsteel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800689}
parent 07441f53
......@@ -115,13 +115,16 @@ class GlobalEventHandlers {
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(stalled, kStalled)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(submit, kSubmit)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(suspend, kSuspend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionend, kTransitionend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(timeupdate, kTimeupdate)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(toggle, kToggle)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchcancel, kTouchcancel)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchend, kTouchend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchmove, kTouchmove)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchstart, kTouchstart)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitioncancel, kTransitioncancel)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionend, kTransitionend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionrun, kTransitionrun)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionstart, kTransitionstart)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(volumechange, kVolumechange)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(waiting, kWaiting)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitanimationend,
......
......@@ -139,5 +139,8 @@
// CSS Transitions
// https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl
attribute EventHandler ontransitionrun;
attribute EventHandler ontransitionstart;
attribute EventHandler ontransitionend;
attribute EventHandler ontransitioncancel;
};
This is a testharness.js-based test.
Found 64 tests; 46 PASS, 18 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS idl_test setup
PASS idl_test validation
PASS Partial interface mixin GlobalEventHandlers: original interface mixin defined
PASS Partial interface mixin GlobalEventHandlers: member names are unique
PASS Partial interface Document: member names are unique
PASS Partial interface Document[2]: member names are unique
PASS Partial interface Window: member names are unique
PASS Document includes GlobalEventHandlers: member names are unique
PASS Document includes DocumentAndElementEventHandlers: member names are unique
PASS Document includes NonElementParentNode: member names are unique
PASS Document includes ParentNode: member names are unique
PASS Document includes XPathEvaluatorBase: member names are unique
PASS HTMLElement includes GlobalEventHandlers: member names are unique
PASS HTMLElement includes DocumentAndElementEventHandlers: member names are unique
PASS HTMLElement includes ElementContentEditable: member names are unique
PASS HTMLElement includes HTMLOrSVGElement: member names are unique
PASS Window includes GlobalEventHandlers: member names are unique
PASS Window includes WindowEventHandlers: member names are unique
PASS Window includes WindowOrWorkerGlobalScope: member names are unique
PASS Window includes AnimationFrameProvider: member names are unique
PASS Window includes WindowSessionStorage: member names are unique
PASS Window includes WindowLocalStorage: member names are unique
PASS Element includes ParentNode: member names are unique
PASS Element includes NonDocumentTypeChildNode: member names are unique
PASS Element includes ChildNode: member names are unique
PASS Element includes Slottable: member names are unique
PASS TransitionEvent interface: existence and properties of interface object
PASS TransitionEvent interface object length
PASS TransitionEvent interface object name
PASS TransitionEvent interface: existence and properties of interface prototype object
PASS TransitionEvent interface: existence and properties of interface prototype object's "constructor" property
PASS TransitionEvent interface: existence and properties of interface prototype object's @@unscopables property
PASS TransitionEvent interface: attribute propertyName
PASS TransitionEvent interface: attribute elapsedTime
PASS TransitionEvent interface: attribute pseudoElement
PASS TransitionEvent must be primary interface of new TransitionEvent("transitionend")
PASS Stringification of new TransitionEvent("transitionend")
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "propertyName" with the proper type
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "elapsedTime" with the proper type
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "pseudoElement" with the proper type
FAIL HTMLElement interface: attribute ontransitionrun assert_true: The prototype object must have a property "ontransitionrun" expected true got false
FAIL HTMLElement interface: attribute ontransitionstart assert_true: The prototype object must have a property "ontransitionstart" expected true got false
PASS HTMLElement interface: attribute ontransitionend
FAIL HTMLElement interface: attribute ontransitioncancel assert_true: The prototype object must have a property "ontransitioncancel" expected true got false
FAIL HTMLElement interface: document must inherit property "ontransitionrun" with the proper type assert_inherits: property "ontransitionrun" not found in prototype chain
FAIL HTMLElement interface: document must inherit property "ontransitionstart" with the proper type assert_inherits: property "ontransitionstart" not found in prototype chain
PASS HTMLElement interface: document must inherit property "ontransitionend" with the proper type
FAIL HTMLElement interface: document must inherit property "ontransitioncancel" with the proper type assert_inherits: property "ontransitioncancel" not found in prototype chain
FAIL Window interface: attribute ontransitionrun assert_own_property: The global object must have a property "ontransitionrun" expected property "ontransitionrun" missing
FAIL Window interface: attribute ontransitionstart assert_own_property: The global object must have a property "ontransitionstart" expected property "ontransitionstart" missing
PASS Window interface: attribute ontransitionend
FAIL Window interface: attribute ontransitioncancel assert_own_property: The global object must have a property "ontransitioncancel" expected property "ontransitioncancel" missing
FAIL Window interface: window must inherit property "ontransitionrun" with the proper type assert_own_property: expected property "ontransitionrun" missing
FAIL Window interface: window must inherit property "ontransitionstart" with the proper type assert_own_property: expected property "ontransitionstart" missing
PASS Window interface: window must inherit property "ontransitionend" with the proper type
FAIL Window interface: window must inherit property "ontransitioncancel" with the proper type assert_own_property: expected property "ontransitioncancel" missing
FAIL Document interface: attribute ontransitionrun assert_true: The prototype object must have a property "ontransitionrun" expected true got false
FAIL Document interface: attribute ontransitionstart assert_true: The prototype object must have a property "ontransitionstart" expected true got false
PASS Document interface: attribute ontransitionend
FAIL Document interface: attribute ontransitioncancel assert_true: The prototype object must have a property "ontransitioncancel" expected true got false
FAIL Document interface: document must inherit property "ontransitionrun" with the proper type assert_inherits: property "ontransitionrun" not found in prototype chain
FAIL Document interface: document must inherit property "ontransitionstart" with the proper type assert_inherits: property "ontransitionstart" not found in prototype chain
PASS Document interface: document must inherit property "ontransitionend" with the proper type
FAIL Document interface: document must inherit property "ontransitioncancel" with the proper type assert_inherits: property "ontransitioncancel" not found in prototype chain
Harness: the test ran to completion.
......@@ -174,7 +174,10 @@ PASS oldChildWindow.ontouchcancel is newChildWindow.ontouchcancel
PASS oldChildWindow.ontouchend is newChildWindow.ontouchend
PASS oldChildWindow.ontouchmove is newChildWindow.ontouchmove
PASS oldChildWindow.ontouchstart is newChildWindow.ontouchstart
PASS oldChildWindow.ontransitioncancel is newChildWindow.ontransitioncancel
PASS oldChildWindow.ontransitionend is newChildWindow.ontransitionend
PASS oldChildWindow.ontransitionrun is newChildWindow.ontransitionrun
PASS oldChildWindow.ontransitionstart is newChildWindow.ontransitionstart
PASS oldChildWindow.onunhandledrejection is newChildWindow.onunhandledrejection
PASS oldChildWindow.onunload is newChildWindow.onunload
PASS oldChildWindow.onvolumechange is newChildWindow.onvolumechange
......
......@@ -139,7 +139,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null
......
......@@ -139,7 +139,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null
......
......@@ -154,7 +154,10 @@ PASS oldChildWindow.ontouchcancel is newChildWindow.ontouchcancel
PASS oldChildWindow.ontouchend is newChildWindow.ontouchend
PASS oldChildWindow.ontouchmove is newChildWindow.ontouchmove
PASS oldChildWindow.ontouchstart is newChildWindow.ontouchstart
PASS oldChildWindow.ontransitioncancel is newChildWindow.ontransitioncancel
PASS oldChildWindow.ontransitionend is newChildWindow.ontransitionend
PASS oldChildWindow.ontransitionrun is newChildWindow.ontransitionrun
PASS oldChildWindow.ontransitionstart is newChildWindow.ontransitionstart
PASS oldChildWindow.onunhandledrejection is newChildWindow.onunhandledrejection
PASS oldChildWindow.onunload is newChildWindow.onunload
PASS oldChildWindow.onvolumechange is newChildWindow.onvolumechange
......
......@@ -130,7 +130,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null
......
......@@ -130,7 +130,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null
......
......@@ -241,7 +241,10 @@ namespace http://www.w3.org/1999/xhtml
property ontouchend
property ontouchmove
property ontouchstart
property ontransitioncancel
property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange
property onwaiting
property onwebkitanimationend
......@@ -1389,7 +1392,10 @@ namespace http://www.w3.org/2000/svg
property ontouchend
property ontouchmove
property ontouchstart
property ontransitioncancel
property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange
property onwaiting
property onwebkitanimationend
......
......@@ -1387,7 +1387,10 @@ interface Document : Node
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvisibilitychange
getter onvolumechange
getter onwaiting
......@@ -1581,7 +1584,10 @@ interface Document : Node
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvisibilitychange
setter onvolumechange
setter onwaiting
......@@ -2537,7 +2543,10 @@ interface HTMLElement : Element
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange
getter onwaiting
getter onwebkitanimationend
......@@ -2649,7 +2658,10 @@ interface HTMLElement : Element
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange
setter onwaiting
setter onwebkitanimationend
......@@ -5924,7 +5936,10 @@ interface SVGElement : Element
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange
getter onwaiting
getter onwebkitanimationend
......@@ -6022,7 +6037,10 @@ interface SVGElement : Element
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange
setter onwaiting
setter onwebkitanimationend
......@@ -9604,7 +9622,10 @@ interface webkitURL
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onunhandledrejection
getter onunload
getter onvolumechange
......@@ -9799,7 +9820,10 @@ interface webkitURL
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onunhandledrejection
setter onunload
setter onvolumechange
......
......@@ -259,7 +259,10 @@ namespace http://www.w3.org/1999/xhtml
property ontouchend
property ontouchmove
property ontouchstart
property ontransitioncancel
property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange
property onwaiting
property onwebkitanimationend
......@@ -1453,7 +1456,10 @@ namespace http://www.w3.org/2000/svg
property ontouchend
property ontouchmove
property ontouchstart
property ontransitioncancel
property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange
property onwaiting
property onwebkitanimationend
......
......@@ -1696,7 +1696,10 @@ interface Document : Node
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvisibilitychange
getter onvolumechange
getter onwaiting
......@@ -1896,7 +1899,10 @@ interface Document : Node
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvisibilitychange
setter onvolumechange
setter onwaiting
......@@ -3065,7 +3071,10 @@ interface HTMLElement : Element
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange
getter onwaiting
getter onwebkitanimationend
......@@ -3181,7 +3190,10 @@ interface HTMLElement : Element
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange
setter onwaiting
setter onwebkitanimationend
......@@ -4887,7 +4899,10 @@ interface MathMLElement : Element
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange
getter onwaiting
getter onwebkitanimationend
......@@ -4985,7 +5000,10 @@ interface MathMLElement : Element
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange
setter onwaiting
setter onwebkitanimationend
......@@ -7005,7 +7023,10 @@ interface SVGElement : Element
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange
getter onwaiting
getter onwebkitanimationend
......@@ -7105,7 +7126,10 @@ interface SVGElement : Element
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange
setter onwaiting
setter onwebkitanimationend
......@@ -11887,7 +11911,10 @@ interface webkitURL
getter ontouchend
getter ontouchmove
getter ontouchstart
getter ontransitioncancel
getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onunhandledrejection
getter onunload
getter onvolumechange
......@@ -12101,7 +12128,10 @@ interface webkitURL
setter ontouchend
setter ontouchmove
setter ontouchstart
setter ontransitioncancel
setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onunhandledrejection
setter onunload
setter onvolumechange
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment