diff options
Diffstat (limited to 'testing/web-platform/tests/interfaces/css-scroll-snap-2.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/css-scroll-snap-2.idl | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl b/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl index 50cbf6940a..a346969c56 100644 --- a/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl +++ b/testing/web-platform/tests/interfaces/css-scroll-snap-2.idl @@ -3,31 +3,14 @@ // (https://github.com/w3c/webref) // Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/) -[Exposed=Window] -interface SnapEvent : Event { - constructor(DOMString type, optional SnapEventInit eventInitDict = {}); - readonly attribute EventTarget? target; - readonly attribute SnapTargetList snappedTargets; - readonly attribute SnapTargetList snapTargets; - readonly attribute boolean invokedProgrammatically; - readonly attribute boolean smoothlyScrolled; -}; - -[Exposed=Window] -interface SnapTargetList { - readonly attribute SnapTargetArray x; - readonly attribute SnapTargetArray y; +dictionary SnapEventInit : EventInit { + Node? snapTargetBlock; + Node? snapTargetInline; }; [Exposed=Window] -interface SnapTargetArray { - readonly attribute unsigned long length; - getter EventTarget? item (unsigned long index); -}; - -dictionary SnapEventInit : EventModifierInit { - sequence<EventTarget> snappedTargetsX = []; - sequence<EventTarget> snappedTargetsY = []; - sequence<EventTarget> snapTargetsListX = []; - sequence<EventTarget> snapTargetsListY = []; +interface SnapEvent : Event { + constructor(DOMString type, optional SnapEventInit eventInitDict = {}); + readonly attribute Node? snapTargetBlock; + readonly attribute Node? snapTargetInline; }; |