- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Fri, 30 Sep 2022 13:19:38 +0000
- To: public-css-archive@w3.org
> Typically we deliver resize observations after we have decided whether the element skips its contents https://github.com/whatwg/html/issues/8277 seems relevant. > Did you have a case in mind where we wouldn't know at style time (or whenever we register for resize observation) whether or not the element skips its contents? `content-visibility: auto` only skips the contents when the element is off the screen by some UA-defined margin. So before determining the position and size of the element, we can't know whether it will be skipped or not, right? In Gecko the code for observing or unobserving the size of `contain-intrinsic-size:auto` is called from `nsIFrame::DidSetComputedStyle` and `nsIContent::SetPrimaryFrame`. Possibly it could be called again when a `content-visibility: auto` element starts or stops skipping the contents, but not sure, I think this hasn't been implemented yet. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7807#issuecomment-1263567129 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 30 September 2022 13:19:40 UTC