blob: c6d0c24b290e3ff818d2aa1122b3ab6ce947bb06 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://drafts.csswg.org/resize-observer-1/#resize-observer-callback
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
// https://drafts.csswg.org/resize-observer-1/#resize-observer-interface
[
Exposed=Window,
ActiveScriptWrappable
] interface ResizeObserver {
[CallWith=ScriptState, MeasureAs=ResizeObserver_Constructor] constructor(ResizeObserverCallback callback);
void observe(Element target, ResizeObserverOptions options);
void observe(Element target);
void unobserve(Element target);
void disconnect();
};