New issue
Advanced search Search tips

Issue 773653 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Invalid width in viewport meta tag falls back to arbitrary value

Project Member Reported by bokan@chromium.org, Oct 11 2017

Issue description

Chrome Version       : 63.0.3230.0
OS Version: Android
URLs (if applicable) : http://bokand.github.io/invalid-viewport.html
Other browsers tested:
  Firefox: OK

What steps will reproduce the problem?
1. Visit the above page which has a malformed width attribute in the viewport meta tag

What is the expected result?
We should fallback to a reasonable default in this case

What happens instead of that?
We seem to fallback to the minimum allowed viewport width (I'm seeing 82px) which doesn't make any sense at all. Firefox appears to fallback as if the width isn't specified (i.e. 980px) which is reasonable, we should do the same.
 
In safari, invalid value will fallback to desktop page. Same as today's chrome.
Screen Shot 2017-10-13 at 14.15.54.png
42.2 KB View Download

Comment 3 by bokan@chromium.org, Oct 13 2017

Chrome falls back to 82px (Chrome on iOS uses a WebKit WebView). So in this case fixing it will improve interop between both Firefox and Safari.
Status: Fixed (was: Assigned)

Sign in to add a comment