MDN self-hosted library · e01.org

HTMLElement: containerTiming property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<section containertiming="hero" id="hero-section">
  <!-- ... -->
</section>
js
const el = document.getElementById("hero-section");
console.log(el.containerTiming); // "hero"