[csswg-drafts] [resize-observer] Does not observe changes to the most important size (#4583)

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

== [resize-observer] Does not observe changes to the most important size ==
Spec : [resize observer api](https://drafts.csswg.org/resize-observer/#api)

You can observe changes to the content-box size but what you are probably more interested in is changes to the actual content area size - ie. the content-box excluding any padding;

Say you are developing a web component. You want to know how much space you have for your content - this excludes padding. The consumer can set the size of the component and the padding  which will give an actual content area size but if they are using the box-sizing model they can then alter the padding which will leave the content-box the same size but change the actual content area available for your component's contents. You will not know about this change with the current ResizeObserver behaviour.




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

Received on Wednesday, 11 December 2019 14:06:04 UTC