Viewport argument value xxx was truncated to its numeric prefix

Filed under: mobile, web development

comments (3) Views: 8,199

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.

Amazon logo

If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!

comments powered by Disqus