Document: timeline プロパティ

Baseline 2022

Newly available

Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

timelineDocument インターフェイスの読み取り専用プロパティで、現在の文書の既定のタイムラインを表します。このタイムラインは DocumentTimeline (en-US) の特別なインスタンスです。

このタイムラインはそれぞれの document に固有のもので、Document.open() の呼び出しを含む document の存続期間中維持されます。

このタイムラインは Performance.timeOrigin からの時刻をミリ秒単位で表します。 基準時刻以前はタイムラインはアクティブではなく、 currentTime (en-US)null になります。

メモ: アクティブでない文書(Window<iframe><frame> に関連付けられていない Document)に関連付けられている文書タイムラインもアクティブではないと見なされます。

DocumentTimeline (en-US) オブジェクトです。

仕様書

Specification
Web Animations
# dom-document-timeline

ブラウザーの互換性

BCD tables only load in the browser

関連情報