W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: Extending CSSOM Views matchMedium with callback

From: João Eiras <joaoe@opera.com>
Date: Mon, 10 May 2010 19:47:42 +0200
To: public-webapps@w3.org, www-style@w3.org
Message-ID: <op.vch3pswf2q99of@id-c0981>
On Mon, 10 May 2010 19:44:37 +0200, Kenneth Christiansen  
<kenneth.christiansen@openbossa.org> wrote:

> Hi Simon,
>
> So what you are suggesting is a kind of
> document.addMediaRuleListener(mediaquery, listener) etc? I think that
> should be quite easy to implement.
>

That seems quite a cludge.

Should be
   addEventListener("mediaChanged", listener, false);
There is already an event model, and it would just require a new event  
type.

-- 

João Eiras
Core Developer, Opera Software ASA, http://www.opera.com/
Received on Monday, 10 May 2010 17:48:25 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:46 UTC