W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2015

Re: [whatwg] "resize" events on elements

From: Simon Pieters <simonp@opera.com>
Date: Tue, 24 Feb 2015 09:29:17 +0100
To: "WHAT Working Group" <whatwg@whatwg.org>, "Dean Jackson" <dino@apple.com>
Message-ID: <op.xujy63w7idj3kv@simons-mbp>
On Tue, 24 Feb 2015 02:40:10 +0100, Dean Jackson <dino@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, and is otherwise difficult or annoying (e.g. checking  
> your size on a timer).
> 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.
> If we settle on a solution fairly soon I will implement it in WebKit  
> nightly builds so people can play.

I'd like to point out that the <video> element fires a resize event when  
the video resource changes size, per spec. I don't know if this is  
implemented by anyone, though; likely that event can be renamed.


Simon Pieters
Opera Software
Received on Tuesday, 24 February 2015 08:29:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:27 UTC