Re: [whatwg] "resize" events on elements

2015-02-25 Thread Elliott Sprehn
On Tue, Feb 24, 2015 at 12:34 AM, Tab Atkins Jr. wrote: > On Mon, Feb 23, 2015 at 8:16 PM, Ryosuke Niwa wrote: > >> On Feb 23, 2015, at 5: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 no

Re: [whatwg] "resize" events on elements

2015-02-24 Thread Dean Jackson
> On 24 Feb 2015, at 6:32 pm, Anne van Kesteren wrote: > > On Tue, Feb 24, 2015 at 2:40 AM, Dean Jackson 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

Re: [whatwg] "resize" events on elements

2015-02-24 Thread Anne van Kesteren
On Tue, Feb 24, 2015 at 9:20 AM, Ryosuke Niwa wrote: > However, there is nothing that forces child elements not to "dirty" their > parents' size again once scripts are involved. One idea that has been floating around is that if you opt into isolation (whereby children cannot affect you), you can

Re: [whatwg] "resize" events on elements

2015-02-24 Thread Simon Pieters
On Tue, 24 Feb 2015 02:40:10 +0100, 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 oth

Re: [whatwg] "resize" events on elements

2015-02-24 Thread Ryosuke Niwa
> On Feb 23, 2015, at 11:34 PM, David Flanagan wrote: > > 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 ele

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 propo

Re: [whatwg] "resize" events on elements

2015-02-23 Thread Anne van Kesteren
On Tue, Feb 24, 2015 at 2:40 AM, Dean Jackson 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. It seems th

Re: [whatwg] "resize" events on elements

2015-02-23 Thread Tab Atkins Jr.
On Mon, Feb 23, 2015 at 8:16 PM, Ryosuke Niwa wrote: >> On Feb 23, 2015, at 5: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

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 difficu

Re: [whatwg] "resize" events on elements

2015-02-23 Thread Ryosuke Niwa
> On Feb 23, 2015, at 5: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 > o

[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 tim