W3C home > Mailing lists > Public > www-style@w3.org > June 2012

RE: [css3-regions][cssom] Bubbling for the regionLayoutUpdate event

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Mon, 11 Jun 2012 22:16:51 +0000
To: Alan Stearns <stearns@adobe.com>, Andrei Bucur <abucur@adobe.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <2C86A15F63CD734EB1D846A0BA4E0FC823CBC643@CH1PRD0310MB381.namprd03.prod.outlook.com>
> On 6/8/12 4:51 AM, "Andrei Bucur" <abucur@adobe.com> wrote:
> 
> >Hello!
> >
> >The Regions spec states that the regionLayoutUpdate event should be
> >bubbling. When this event was dispatched on the region this was very
> >easy to understand as they were DOM elements. Now, the NamedFlow object
> >is the target, which is not clearly positioned  in  the DOM hierarchy.
> >How is the bubbling supposed to behave for this event? Should it be
> >possible to listen for the event on the parent document and determine
> >the NamedFlow from the event target?
> >
> >Thanks!
> >Andrei.

The way the event defined now (only on NamedFlow and never on region) it doesn't make any sense to bubble. It was useful for setting one listener on multiple regions, now the event on NamedFlow already is the single object to connect one listener to.

If the event is ever applies to individual regions again, it should bubble again. Currently that functionality is removed due to insufficient motivation. It may hypothetically help to optimize for incremental updates in regions, but there is not enough evidence that it would in fact make a difference.

We should just make the event not bubble.

Alex
Received on Monday, 11 June 2012 22:18:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT