- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 28 Aug 2007 20:46:20 -0500
- To: Timur Mehrvarz <timur.mehrvarz@web.de>
- CC: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
Timur Mehrvarz wrote: > Let's say, one UA does support aspect-ratio, but does not re-evaluate > MQ's in response to aspect-ratio changes. In such a case, I may want to > help myself, with code, similar to the one shown below. That's exactly what sites did to work around NS4 not reapplying CSS in some cases. The result is that some UAs don't actually reload when you do location.reload() from a resize event handler. The relevant Gecko code comment, for example, is: // location.reload() was called on a window that is handling a // resize event. Sites do this since Netscape 4.x needed it, but // we don't, and it's a horrible experience for nothing. In stead // of reloading the page, just clear style data and reflow the // page since some sites may use this trick to work around gecko // reflow bugs, and this should have the same effect. In other words, UAs already have to do with this situation.... -Boris
Received on Wednesday, 29 August 2007 01:46:37 UTC