W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

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

From: bobOnGitHub via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Dec 2019 14:06:02 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-536392245-1576073161-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC