The containertimingignore global attribute is a boolean attribute that excludes an element and its descendants from contributing to the timing of any ancestor element marked with containertiming.
For more details, see the PerformanceContainerTiming interface.
In the DOM, this attribute is reflected as HTMLElement.containerTimingIgnore.
Examples
Excluding a subtree from a container's timing
In this example, the div and its contents are excluded from the "hero" container's timing, while the image still contributes to it.
<section containertiming="hero">
<img src="hero.jpg" alt="" />
<div containertimingignore>
</div>
</section>
For examples of how to use the Container Timing API to get timing information, see PerformanceContainerTiming.
Specifications
Browser compatibility
See also
containertiming- PerformanceContainerTiming
- HTMLElement.containerTimingIgnore
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
