Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1067608 of IntersectionObserverEntry

  • Revision slug: Web/API/IntersectionObserverEntry
  • Revision title: IntersectionObserverEntry
  • Revision id: 1067608
  • Created:
  • Creator: jpmedley
  • Is current revision? No
  • Comment Add property descriptions.

Revision Content

{{SeeCompatTable}}{{APIRef("")}}

The IntersectionObserverEntry interface of the the Intersection Observer API provides information about the intersection of a particular target with the observers root element at a particular time. Instances of this interface cannot be created, but a list of them is returned by {{domxref("IntersectionObserver.takeRecords", "IntersectionObserver.takeRecords()")}}.

Properties

{{domxref("IntersectionObserverEntry.boundingClientRect")}} {{readonlyinline}}
Returns a {{domxref("DOMRectReadOnly")}} for the intersection observer's target.
{{domxref("IntersectionObserverEntry.intersectionRatio")}} {{readonlyinline}}
Returns the ratio of the intersectionRect to the boundingClientRect.
{{domxref("IntersectionObserverEntry.intersectionRect")}} {{readonlyinline}}
Returns a {{domxref("DOMRectReadOnly")}} for the visible portion of the intersection observer's target.
{{domxref("IntersectionObserverEntry.rootBounds")}} {{readonlyinline}}
Returns a {{domxref("DOMRectReadOnly")}} for the intersection observer's root.
{{domxref("IntersectionObserverEntry.time")}} {{readonlyinline}}
Returns a {{domxref("DOMHightResTimeStamp")}} indicating when the intersection occurred.

Specifications

Specification Status Comment
{{SpecName('IntersectionObserver','#intersection-observer-entry','IntersectionObserverEntry')}} {{Spec2('IntersectionObserver')}} Initial definition.

Browser Compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support

{{CompatChrome(51.0)}}

{{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatChrome(51.0)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatChrome(51.0)}}

Revision Source

<p>{{SeeCompatTable}}{{APIRef("")}}</p>

<p>The <code><strong>IntersectionObserverEntry</strong></code> interface of the the Intersection Observer API provides information about the intersection of a particular target with the observers root element at a particular time. Instances of this interface cannot be created, but a list of them is returned by {{domxref("IntersectionObserver.takeRecords", "IntersectionObserver.takeRecords()")}}.</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("IntersectionObserverEntry.boundingClientRect")}} {{readonlyinline}}</dt>
 <dd>Returns a {{domxref("DOMRectReadOnly")}} for&nbsp;the intersection observer's target.</dd>
 <dt>{{domxref("IntersectionObserverEntry.intersectionRatio")}} {{readonlyinline}}</dt>
 <dd>Returns the ratio of the <code>intersectionRect</code> to the <code>boundingClientRect</code>.</dd>
 <dt>{{domxref("IntersectionObserverEntry.intersectionRect")}} {{readonlyinline}}</dt>
 <dd>Returns a {{domxref("DOMRectReadOnly")}} for&nbsp;the visible portion of the intersection observer's target.</dd>
 <dt>{{domxref("IntersectionObserverEntry.rootBounds")}} {{readonlyinline}}</dt>
 <dd>Returns a {{domxref("DOMRectReadOnly")}} for&nbsp;the intersection observer's root.</dd>
 <dt>{{domxref("IntersectionObserverEntry.time")}} {{readonlyinline}}</dt>
 <dd>Returns a {{domxref("DOMHightResTimeStamp")}} indicating when the intersection occurred.</dd>
</dl>

<h2 id="Examples">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('IntersectionObserver','#intersection-observer-entry','IntersectionObserverEntry')}}</td>
   <td>{{Spec2('IntersectionObserver')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_Compatibility">Browser Compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>
    <p>{{CompatChrome(51.0)}}</p>
   </td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(51.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatChrome(51.0)}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision