-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
45 lines (32 loc) · 1.71 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: "PerformanceScriptTiming: windowAttribution property"
short-title: windowAttribution
slug: Web/API/PerformanceScriptTiming/windowAttribution
page-type: web-api-instance-property
status:
- experimental
browser-compat: api.PerformanceScriptTiming.windowAttribution
---
{{SeeCompatTable}}{{APIRef("Performance API")}}
The **`windowAttribution`** read-only property of the {{domxref("PerformanceScriptTiming")}} interface returns an enumerated value describing the relationship of the container (i.e., either the top-level document or an {{htmlelement("iframe")}}) in which the long animation frame (LoAF)-causing script was executed, relative to the window running the current document.
## Value
An enumerated value, which can be one of:
- `"ancestor"`
- : The current document is a descendant of the document in which the script was executed, embedded inside it in an `<iframe>`.
- `"descendant"`
- : The script was executed in a descendant document embedded inside the current document in an `<iframe>`.
- `"other"`
- : The location of the document the script was executed in could not be determined.
- `"same-page"`
- : The script was executed in a version of the current document embedded within the current document in an `<iframe>`.
- `"self"`
- : The script was executed in the current document.
## Examples
See [Long animation frame timing](/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing#examples) for examples related to the Long Animation Frames API.
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}
## See also
- [Long animation frame timing](/en-US/docs/Web/API/Performance_API/Long_animation_frame_timing)
- {{domxref("PerformanceLongAnimationFrameTiming")}}