Re: [csswg-drafts] [resize-observer] The initial size of ResizeObservation (#3664)

There was a discussion about what initial size should be at:
https://github.com/WICG/ResizeObserver/issues/8

Options were:
* current size of the element
  - rejected because this might cause RO.observe() to trigger layout.
* (0,0)
  - causes RO to fire immediately after being observed, unless Element size is 0,0
  - 0,0 is also Element's size when hidden. RO will not fire initially until Element is shown.
- undefined
  - would cause RO to always fire, even when hidden.

I think (0,0) option is most useful, because it does not fire until Element is shown.


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

Received on Tuesday, 12 March 2019 22:29:37 UTC