W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

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

From: Aleksandar Totic via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Mar 2019 22:29:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-472206070-1552429775-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:57 UTC