- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 18 Aug 2022 23:24:27 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:
== [resize-observer] Why are inlineSize and blockSize unrestricted? ==
https://drafts.csswg.org/resize-observer-1/Overview.html#resizeobserversize
```js
interface ResizeObserverSize {
readonly attribute unrestricted double inlineSize;
readonly attribute unrestricted double blockSize;
};
```
Why make them `unrestricted`? They are readonly, so they can't be set from a script. They are only set in [calculate box size](https://drafts.csswg.org/resize-observer-1/Overview.html#calculate-box-size), and I don't think that can be NaN or infinity.
There is no other CSS spec using a readonly unrestricted attribute.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7623 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 18 August 2022 23:24:29 UTC