dom/webidl/VisualViewport.webidl
author Csoregi Natalia <ncsoregi@mozilla.com>
Sat, 01 Oct 2022 04:22:22 +0300
changeset 636750 5144d608cc2f43bf6b35742773ef0c7d2579ec27
parent 570742 e055c9f7abe0867dbd2383b83a975fe2edaae4b5
permissions -rw-r--r--
Backed out changeset 63fbc22d2223 (bug 1792741) for causing assertion failures on nsCSSFrameConstructor.cpp. CLOSED TREE

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * The origin of this IDL file is:
 * https://wicg.github.io/visual-viewport/#the-visualviewport-interface
 */

[Pref="dom.visualviewport.enabled",
 Exposed=Window]
interface VisualViewport : EventTarget {
  readonly attribute double offsetLeft;
  readonly attribute double offsetTop;

  readonly attribute double pageLeft;
  readonly attribute double pageTop;

  readonly attribute double width;
  readonly attribute double height;

  readonly attribute double scale;

  attribute EventHandler onresize;
  attribute EventHandler onscroll;
};