// Copyright 2017 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://dev.w3.org/fxtf/geometry/#DOMRectList
// Spec update: https://github.com/w3c/fxtf-drafts/pull/186

// DOMRectList only exists for compatibility with legacy web content.
// When specifying a new API, use sequence<DOMRect> instead.

// TODO: Spec also includes LegacyArrayClass that our IDL doesn't support yet.
[ NoInterfaceObject ] interface DOMRectList {
    readonly attribute unsigned long length;
    [MeasureAs=ClientRectListItem] getter DOMRect? item(unsigned long index);
};
