Re: [csswg-drafts] [resize-observer-1] Firing observations on insert/remove when rendered size is (0, 0) (#7808)

Yes, but these listed properties were already broken with an initial observation of [(0, 0)], e.g.

 - Inserting a 0x0 element into the DOM didn't trigger any observation.
 - Removing a 0x0 element from the DOM didn't trigger any observation.
 - Setting `display: none` on a 0x0 element didn't trigger any observation.

A relevant issue is #7734. If we say that an element with no box has a size of [], then

 - When an element which was not rendered (e.g. because it was disconnected from the DOM or because of `display: none`) starts being rendered, it will trigger a notification, even if its size is 0x0. Because it will change from [] to [(0, 0)].
 - When an element which was rendered stops being rendered, it will trigger a notification, even if its size was 0x0. Because it will change from [(0, 0)] to [].

But if elements with no box are supposed to have a size of [(0, 0)], then we will need to discuss what to do with elements of 0x0 size.





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


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

Received on Wednesday, 28 September 2022 20:52:15 UTC