Skip to content

Commit f1c5335

Browse files
committed
Change from sequence to FrozenArray for ResizeObserverEntry attributes
1 parent 3417fe3 commit f1c5335

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

resize-observer-1/Overview.bs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ urlPrefix: https://drafts.csswg.org/css-box-3/
4747
url: #content-area; type: dfn; text: content area
4848
urlPrefix: https://www.w3.org/TR/cssom-view-1/
4949
url: #dom-window-devicepixelratio; type: dfn; text: devicePixelRatio
50+
urlPrefix: https://heycam.github.io/webidl/
51+
url: #idl-frozen-array; type: dfn; text: FrozenArray
5052

5153
</pre>
5254
<pre class=link-defaults>
@@ -250,9 +252,9 @@ This callback delivers {{ResizeObserver}}'s notifications. It is invoked by a
250252
interface ResizeObserverEntry {
251253
readonly attribute Element target;
252254
readonly attribute DOMRectReadOnly contentRect;
253-
readonly attribute sequence&lt;ResizeObserverSize> borderBoxSize;
254-
readonly attribute sequence&lt;ResizeObserverSize> contentBoxSize;
255-
readonly attribute sequence&lt;ResizeObserverSize> devicePixelContentBoxSize;
255+
readonly attribute FrozenArray&lt;ResizeObserverSize> borderBoxSize;
256+
readonly attribute FrozenArray&lt;ResizeObserverSize> contentBoxSize;
257+
readonly attribute FrozenArray&lt;ResizeObserverSize> devicePixelContentBoxSize;
256258
};
257259
</pre>
258260

@@ -267,24 +269,24 @@ interface ResizeObserverEntry {
267269
{{Element}}'s <a>content rect</a> when {{ResizeObserverCallback}} is invoked.
268270
: <dfn>borderBoxSize</dfn>
269271
::
270-
A sequence containing the {{Element}}'s <a>border box</a> size when {{ResizeObserverCallback}} is invoked.
272+
A {{FrozenArray}} containing the {{Element}}'s <a>border box</a> size when {{ResizeObserverCallback}} is invoked.
271273
: <dfn>contentBoxSize</dfn>
272274
::
273-
A sequence containing the {{Element}}'s <a>content rect</a> size when {{ResizeObserverCallback}} is invoked.
275+
A {{FrozenArray}} containing the {{Element}}'s <a>content rect</a> size when {{ResizeObserverCallback}} is invoked.
274276
: <dfn>devicePixelContentBoxSize</dfn>
275277
::
276-
A sequence containing the {{Element}}'s <a>content rect</a> size in integral device pixels when {{ResizeObserverCallback}} is invoked.
278+
A {{FrozenArray}} containing the {{Element}}'s <a>content rect</a> size in integral device pixels when {{ResizeObserverCallback}} is invoked.
277279

278280
</div>
279281

280282
<p class="note">
281-
The box size properties are exposed as sequences in order to support elements that have multiple fragments,
283+
The box size properties are exposed as {{FrozenArray}} in order to support elements that have multiple fragments,
282284
which occur in <a>multi-column</a> scenarios.
283285
However the current definitions of <a>content rect</a> and <a>border box</a>
284286
do not mention how those boxes are affected by <a>multi-column</a> layout.
285-
In this spec, there will only be a single ResizeObserverSize returned in the sequences,
287+
In this spec, there will only be a single ResizeObserverSize returned in the {{FrozenArray}},
286288
which will correspond to the dimensions of the first column.
287-
A future version of this spec will extend the returned sequences to contain the per-fragment size information.
289+
A future version of this spec will extend the returned {{FrozenArray}} to contain the per-fragment size information.
288290
</p>
289291

290292
<pre class="idl">

0 commit comments

Comments
 (0)