PopupPositionedEvent.webidl (1108B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 */ 6 7 dictionary PopupPositionedEventInit : EventInit { 8 boolean isAnchored = false; 9 /** 10 * Returns the alignment position where the popup has appeared relative to its 11 * anchor node or point, accounting for any flipping that occurred. 12 */ 13 DOMString alignmentPosition = ""; 14 /** 15 * Returns the alignment position of the popup, e.g. "topcenter" for a popup 16 * whose top center is aligned with the anchor node. 17 */ 18 DOMString popupAlignment = ""; 19 long alignmentOffset = 0; 20 }; 21 22 [ChromeOnly, Exposed=Window] 23 interface PopupPositionedEvent : Event { 24 constructor(DOMString type, optional PopupPositionedEventInit init = {}); 25 26 readonly attribute boolean isAnchored; 27 readonly attribute DOMString alignmentPosition; 28 readonly attribute DOMString popupAlignment; 29 readonly attribute long alignmentOffset; 30 };