Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ contexts. This allows developers to detect support for the Layout Instability AP
};
</pre>

NOTE: The {{LayoutShiftAttribution/previousRect}} and {{LayoutShiftAttribution/currentRect}}
attributes report rectangles in <a>CSS pixels</a>, consistent with other Web Platform APIs
such as {{Element/getBoundingClientRect()}}, {{IntersectionObserver}}, and {{ResizeObserver}}.
This provides a device-independent coordinate system that simplifies correlation of layout
shift measurements with other DOM measurements.

Each {{LayoutShiftAttribution}} is associated with a {{Node}} (its
<dfn>associated node</dfn>).

Expand Down Expand Up @@ -582,10 +588,10 @@ run the following steps:
1. Set the <a>associated node</a> of |A| to |N|.
1. Set the <dfn attribute for=LayoutShiftAttribution>previousRect</dfn> attribute
of |A| to the smallest <a>Rectangle</a> containing the <a>previous frame visual
representation</a> of |N|.
representation</a> of |N|, in <a>CSS pixels</a>.
1. Set the <dfn attribute for=LayoutShiftAttribution>currentRect</dfn> attribute
of |A| to the smallest <a>Rectangle</a> containing the <a>visual
representation</a> of |N|.
representation</a> of |N|, in <a>CSS pixels</a>.
1. Return |A|.

</div>
Expand Down
Loading