Re: [csswg-drafts] [css-device-adapt] @viewport is preloader-hostile

@zcorpan Here a long version [SO 
answer](http://stackoverflow.com/a/21721335/1647538) of the process I 
had to go through.

In brief for WebKit and Chrome the workaround for zoom issues was to 
prevent zoom on the first pass. And do a second pass to restore zoom 
at the appropriate timing.

Firefox required either document.write() or a force removal + re-add 
of a new meta viewport.

A major difficulty to note with Meta viewport and keeping a consistent
 width at screen rotations e.g., is that it requires a calculation of 
the new expected zoom ratio according to the prior orientation and 
respective screen sizes. Not mentioning the necessity I had to first 
adjust for screen sizes wrongly reported as physical pixels on android
 webview or some other devices, in order to properly determine the 
rotated width correctly ahead or time. :(

Meta viewport changes lack that clean slate, or a way to change 
individual values independently. Something that @viewport *may* be 
more suited to handle, without all the math headaches.


-- 
GitHub Notification of comment by hexalys
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/258#issuecomment-245893312 
using your GitHub account

Received on Friday, 9 September 2016 11:58:03 UTC