Viewport argument value xxx was truncated to its numeric prefix
Filed under: mobile, web development
comments (3) Views: 4,254
Are you getting any of the following errors reported in Chrome Dev Tools, or Firebug, while you're working on a mobile site? They're not breaking anything but when you're working in the console and you get a flood of these it gets annoying.
The culprit was clearly this code but nothing seemed out of the ordinary
Until I figured out that the key/value pairs should be seperated by commas instead of semicolons, like so:
Now my console is nice and clean. Hope this helps you out.
If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!
Thank for posting this! I was quite annoyed by this as well.
john - August 14, 2012 07:02 am
Thanks a lot. was a issue in my app to..
Tejas - November 19, 2012 11:36 pm
thanks!
Davide - December 25, 2012 04:19 am