- From: L. David Baron <dbaron@dbaron.org>
- Date: Thu, 23 Jun 2011 10:47:09 -0700
- To: Ian Hickson <ian@hixie.ch>
- Cc: Anne van Kesteren <annevk@opera.com>, www-style@w3.org
On Thursday 2011-06-23 09:14 -0700, L. David Baron wrote: > First, if script changes the width of an iframe and then does > something that flushes style data, such as: > getComputedStyle(element,"").color > we'll run the media query listeners resulting from the width change > inside the getComputedStyle call, since that requires getting style > data up to date, which requires flushing any buffered style changes > (including media query changes). To make this a little more concrete, I've posted an example: http://lists.w3.org/Archives/Public/www-archive/2011Jun/att-0040/mql.html In the "run without flush or timeout" case Gecko alerts: # before set width # after set width # before set height # after set height but I believe the current spec at http://dev.w3.org/csswg/cssom-view/#list-of-media-query-list-listeners requires that it alert: # before set width # after set width # before set height # after set height # listener notified, matches=false # listener notified, matches=true Likewise, in the "run with flush" case Gecko alerts: # before set width # after set width # before flush # listener notified, matches=false # after flush # before set height # after set height # listener notified, matches=true whereas I believe the current spec requires: # before set width # after set width # before flush # after flush # before set height # after set height # listener notified, matches=false # listener notified, matches=true -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/
Received on Thursday, 23 June 2011 17:48:06 UTC