blob: ec82d8618d02feb171f09782d00a4326b166c43c [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://wicg.github.io/IntersectionObserver/#intersection-observer-entry
interface IntersectionObserverEntry {
readonly attribute DOMHighResTimeStamp time;
// TODO(szager): |rootBounds| should not be nullable.
readonly attribute DOMRectReadOnly? rootBounds;
readonly attribute DOMRectReadOnly boundingClientRect;
readonly attribute DOMRectReadOnly intersectionRect;
readonly attribute boolean isIntersecting;
[RuntimeEnabled=IntersectionObserverV2] readonly attribute boolean isVisible;
readonly attribute double intersectionRatio;
readonly attribute Element target;
};