[csswg-drafts] [resize-observer] Populating a ResizeObserverEntry needs to use FrozenArray (#7618)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [resize-observer] Populating a ResizeObserverEntry needs to use FrozenArray ==
https://drafts.csswg.org/resize-observer-1/#create-and-populate-a-resizeobserverentry

> 3. Set this.[borderBoxSize](https://drafts.csswg.org/resize-observer-1/#dom-resizeobserverentry-borderboxsize) slot to result of[ computing size given target and observedBox of "border-box"](https://drafts.csswg.org/resize-observer-1/#calculate-box-size).
> 4. Set this.[contentBoxSize](https://drafts.csswg.org/resize-observer-1/#dom-resizeobserverentry-contentboxsize) slot to result of[ computing size given target and observedBox of "content-box"](https://drafts.csswg.org/resize-observer-1/#calculate-box-size).
> 5. Set this.[devicePixelContentBoxSize](https://drafts.csswg.org/resize-observer-1/#dom-resizeobserverentry-devicepixelcontentboxsize) slot to result of[ computing size given target and observedBox of "device-pixel-content-box"](https://drafts.csswg.org/resize-observer-1/#calculate-box-size).


"calculate box size" seems to return a `ResizeObserverSize` (#7615), but `ResizeObserverEntry`'s `borderBoxSize`, `contentBoxSize` and `devicePixelContentBoxSize` aren't `ResizeObserverSize`s, they are `FrozenArray<ResizeObserverSize>`.

I guess the algorithm should use https://webidl.spec.whatwg.org/#dfn-create-frozen-array


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7618 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 17 August 2022 21:13:33 UTC