Re: [whatwg] resize events on elements

2015-02-25 Thread Elliott Sprehn
On Tue, Feb 24, 2015 at 12:34 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: 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

Re: [whatwg] resize events on elements

2015-02-24 Thread Anne van Kesteren
On Tue, Feb 24, 2015 at 9:20 AM, Ryosuke Niwa rn...@apple.com 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

Re: [whatwg] resize events on elements

2015-02-24 Thread Ryosuke Niwa
On Feb 23, 2015, at 11:34 PM, David Flanagan dflana...@mozilla.com 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

Re: [whatwg] resize events on elements

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

Re: [whatwg] resize events on elements

2015-02-24 Thread Dean Jackson
On 24 Feb 2015, at 6:32 pm, Anne van Kesteren ann...@annevk.nl wrote: 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

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] 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] 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