| // 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 |
| |
| [ |
| RuntimeEnabled=IntersectionObserver, |
| ] interface IntersectionObserverEntry { |
| readonly attribute DOMHighResTimeStamp time; |
| // TODO(szager): |rootBounds| should not be nullable and it, |
| // |boundingClientRect| and |intersectionRect| should all be |
| // DOMRectReadOnly. |
| readonly attribute ClientRect? rootBounds; |
| readonly attribute ClientRect boundingClientRect; |
| readonly attribute ClientRect intersectionRect; |
| readonly attribute double intersectionRatio; |
| readonly attribute Element target; |
| }; |