Re: [whatwg] resize events on elements

2015-02-23 Thread Michael A. Peters
On 02/23/2015 05:40 PM, Dean Jackson wrote: At the recent Houdini meeting there was a vague agreement between the browser engines on adding a way for elements to be notified when their size changes. We've run into a number of scenarios where this is extremely useful, and is otherwise

Re: [whatwg] resize events on elements

2015-02-23 Thread Ryosuke Niwa
On Feb 23, 2015, at 5:40 PM, Dean Jackson d...@apple.com wrote: At the recent Houdini meeting there was a vague agreement between the browser engines on adding a way for elements to be notified when their size changes. We've run into a number of scenarios where this is extremely useful,

[whatwg] Event loop processing model, and current time

2015-02-23 Thread Simon Fraser
https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-9 says: 1. Let now be the value that would be returned by the Performance object's now() method 2. Let docs be the list of Document objects associated with the event loop in question… ... 4. For each fully active Document

[whatwg] resize events on elements

2015-02-23 Thread Dean Jackson
At the recent Houdini meeting there was a vague agreement between the browser engines on adding a way for elements to be notified when their size changes. We've run into a number of scenarios where this is extremely useful, and is otherwise difficult or annoying (e.g. checking your size on a

Re: [whatwg] Event loop processing model, and current time

2015-02-23 Thread James Robinson
On Mon, Feb 23, 2015 at 4:57 PM, Simon Fraser s...@me.com wrote: https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-9 says: 1. Let now be the value that would be returned by the Performance object's now() method 2. Let docs be the list of Document objects associated

Re: [whatwg] resize events on elements

2015-02-23 Thread Tab Atkins Jr.
On Mon, Feb 23, 2015 at 8:16 PM, Ryosuke Niwa rn...@apple.com wrote: On Feb 23, 2015, at 5:40 PM, Dean Jackson d...@apple.com wrote: At the recent Houdini meeting there was a vague agreement between the browser engines on adding a way for elements to be notified when their size changes.

Re: [whatwg] resize events on elements

2015-02-23 Thread Anne van Kesteren
On Tue, Feb 24, 2015 at 2:40 AM, Dean Jackson d...@apple.com wrote: The idea was to allow the resize event on elements. I don't really care what the solution is, so maybe someone here can come up with a better idea (size observers?). And of course there are a lot of details to be worked out.

Re: [whatwg] resize events on elements

2015-02-23 Thread David Flanagan
Yes, please! At a minimum I'd like to see this as a custom element lifecycle callback, but a more general resize event of some sort also seems like it would be useful. I've wanted this the most often when working with the canvas element. This seems like the sort of thing that would have been

Re: [whatwg] Event loop processing model, and current time

2015-02-23 Thread Ryosuke Niwa
On Feb 23, 2015, at 5:26 PM, James Robinson jam...@chromium.org wrote: On Mon, Feb 23, 2015 at 4:57 PM, Simon Fraser s...@me.com wrote: https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-9 says: 1. Let now be the value that would be returned by the Performance