Re: [csswg-drafts] [css-sizing] Last remembered size when fragmented? (#7598)

I was actually mistaken. It's true that in Blink a ResizeObserver exposes an array with a single size, which is then used as the last remembered size. But this size is not the one of the 1st fragment as the spec says, in the block axis it's the sum of the block size of all fragments. So even if by accident, the last remembered size behaves as desired in Blink.

In Gecko I have implemented multi-fragment support in ResizeObserver (behind a flag), and then the last remembered size can use that.

So now I think it's reasonable to resolve that the last remembered size should take all fragments into account:
 - The last remembered block size should be the sum of the block sizes of the fragments.
 - The last remembered inline size should the the maximum (?) among the inline sizes of the fragments.

Not sure if Blink is actually using the maximum for the inline axis, since I don't know how to get fragments with different inline sizes.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 September 2022 16:51:07 UTC