- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sun, 31 Jul 2022 20:55:18 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:
== [resize-observer] Missing 2nd argument from ResizeObservation constructor ==
From https://drafts.csswg.org/resize-observer/#resizeobservation
```TypeScript
interface ResizeObservation {
constructor(Element target);
readonly attribute Element target;
readonly attribute ResizeObserverBoxOptions observedBox;
readonly attribute FrozenArray<ResizeObserverSize> lastReportedSizes;
};
```
But the constructor actually has an optional `observedBox` parameter:
> `new ResizeObservation(target, observedBox)`
> 1. Let *this* be a new [ResizeObservation](https://drafts.csswg.org/resize-observer/#resizeobservation) object
> 2. Set *this* internal [target](https://drafts.csswg.org/resize-observer/#dom-resizeobservation-target) slot to *target*
> 3. Set *this* internal [observedBox](https://drafts.csswg.org/resize-observer/#dom-resizeobservation-observedbox) slot to *observedBox*
> 4. Set *this* internal [lastReportedSizes](https://drafts.csswg.org/resize-observer/#dom-resizeobservation-lastreportedsizes) slot to [(0,0)]
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7547 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 31 July 2022 20:55:20 UTC