csswg-drafts icon indicating copy to clipboard operation
csswg-drafts copied to clipboard

[resize-observer] Why are inlineSize and blockSize unrestricted?

Open Loirooriol opened this issue 3 years ago • 0 comments

https://drafts.csswg.org/resize-observer-1/Overview.html#resizeobserversize

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, and I don't think that can be NaN or infinity.

There is no other CSS spec using a readonly unrestricted attribute.

Loirooriol avatar Aug 18 '22 23:08 Loirooriol