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.
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry> entries, ResizeObserver observer);
] 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();