- From: Aleksandar Totic via GitHub <sysbot+gh@w3.org>
- Date: Thu, 24 Jan 2019 19:37:23 +0000
- To: public-css-archive@w3.org
> So now we would have something like this?
> // { target: Element, size: ResizeObserverSize }
No. Our current thinking is to keep all reported sizes in ResizeObserverEntry, but only reported one would be non-null.
This reminds me of an exception I forgot to mention in my previous comment.
"Only one size can be safely used at a time" rule has an exception. If "device-pixel-border-box" is being watched, "border-box" size is useful, and can be used safely.
Example: in response to "device-pixel-border-box" size notification, <canvas> Element would be resized to "border-box" size, and canvas context would be resized to "device-pixel-border-box".
--
GitHub Notification of comment by atotic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-457328377 using your GitHub account
Received on Thursday, 24 January 2019 19:37:24 UTC