Hi Simon, I guess you could use the media query listener defined in http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface
We support that on trunk now. This of course means that we will need to reevaluate the CSS when a pinch zoom ends, which we might be doing already given media queries such as @media all and (min-width: 200px). Cheers Kenneth On Fri, Mar 4, 2011 at 8:47 PM, Simon Fraser <simon.fra...@apple.com> wrote: > On Mar 4, 2011, at 11:24 AM, Kenneth Rohde Christiansen wrote: > >> Hey Oliver! >> >> If you are saying that device-pixel-ratio should include the user >> scaling, then I can push that for Qt, but I would really like seeing >> it supported by iOS as well for compatibility reasons. If you create a >> bug for that, please cc me. > > There's a problem with that, which is that the author can assume (possibly > erroneously) that device-pixel-ratio doesn't change for the life of the page. > However, the zoom level can change often, and there's no notification that > the author can register for that will tell them when the zoom level changes, > and thus when they'll need to redraw their canvas contents. > > Simon > > -- Kenneth Rohde Christiansen Senior Engineer Application and Service Frameworks, Nokia Danmark A/S Phone +45 4093 0598 / E-mail kenneth.christiansen at gmail.com http://codeposts.blogspot.com ﹆﹆﹆ _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev