W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

Re: [csswg-drafts] [css-sizing-4] Clarify spec about when elements are allowed to not have a last remembered size (#6220)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sat, 01 May 2021 23:58:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-830711439-1619913519-sysbot+gh@w3.org>
No strong opinion, but maybe I would even expect to remove the last remembered size during the first layout after removing `auto`, even if there hasn't been any `ResizeObserver` opportunity.

// Assume last remembered size is 100px
element.style.containIntrinsicSize = "none";
element.offsetLeft; // Forces sync layout, clears remembered size?
element.style.containIntrinsicSize = "auto 0px"; // Re-add "auto" before ResizeObserver opportunity
element.style.contain = "size";

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6220#issuecomment-830711439 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 1 May 2021 23:58:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:33 UTC