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

Re: [cssom] comments on MediaQueryList

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 23 Jun 2011 17:33:44 +0200
To: www-style@w3.org, "L. David Baron" <dbaron@dbaron.org>, "Ian Hickson" <ian@hixie.ch>
Message-ID: <op.vxjb6igt64w2qv@anne-van-kesterens-macbook-pro.local>
On Wed, 20 Apr 2011 21:27:23 +0200, L. David Baron <dbaron@dbaron.org>  
> A few comments on
> http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface ,
> which I'm implementing:
>   readonly attribute DOMString matches;
> should say:
>   readonly attribute boolean matches;


> Also, the spec currently says:
>   # If the associated media query list changes in evaluation then,
>   # for each listener in the list of media query list listeners — in
>   # appending order, queue a task that invokes the listener, passing
>   # as argument the MediaQueryList object.
> I'm not sure if "queue a task" is quite sufficient, since we may
> want to run these listeners earlier if something happens first that
> wants to flush style data.  I don't know if the spec has a good way
> of describing that, though.  (Also, I hope the definition of "queue
> a task" allows timer-based refreshing where on each refresh we flush
> different things based on the scope of what they can change
> (content, style, layout).)

I am not sure how to resolve this. Ian, do you maybe have any ideas? The  
relevant text can be found here (for now):


Anne van Kesteren
Received on Thursday, 23 June 2011 15:34:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:02 UTC