HTMLElement: containerTimingIgnore property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}{{SeeCompatTable}}
The **containerTimingIgnore** property of the {{domxref("HTMLElement")}} interface excludes the element and its descendants from contributing to the timing of any ancestor container root in the Container Timing API.
The containerTimingIgnore property reflects the value of the [containertimingignore](/en-US/docs/Web/HTML/Reference/Global_attributes/containertimingignore) attribute.
Value
A boolean value.
Examples
Logging the value of containerTimingIgnore
In this example, adding the [containertimingignore](/en-US/docs/Web/HTML/Reference/Global_attributes/containertimingignore) attribute to a {{htmlelement("div")}} element excludes it from its ancestor container's timing.
<section containertiming="hero">
<div containertimingignore id="ignored">
<!-- ... -->
</div>
</section>We can then read the property and log its value:
const el = document.getElementById("ignored");
console.log(el.containerTimingIgnore); // trueFor examples of how to use the Container Timing API to get timing information, see {{domxref("PerformanceContainerTiming")}}.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("PerformanceContainerTiming")}}
- [
containertimingignore](/en-US/docs/Web/HTML/Reference/Global_attributes/containertimingignore) HTML attribute - {{domxref("HTMLElement.containerTiming")}}