viewport meta tag is overriden
Reported by
hs85je...@gmail.com,
Sep 27 2016
|
||||||
Issue description
Chrome Version : Chrome, 53.0.2785.116m
URLs (if applicable) : meta.html (attached)
Other browsers tested: Yes.
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: OK
Firefox: OK
IE: Not yet.
What steps will reproduce the problem?
(1) test the "meta.html" with mobile device simulator in the inspector.
What is the expected result?
Expected: Red rectangle is fit to the half of the screen.
What happens instead?
Acutal: 300px, 300px rectangle is located to the top-left edge.
Please provide any additional information below. Attach a screenshot if
possible.
I think second meta tag doesn't have to override the first one except to define the same property. Other browsers(Firefox, Safari..) keep the defined meta tag even if new meta tag is added. I didn't find the spec about the duplicated viewport meta tag. What is right behavior?
,
Oct 10 2016
Can repro. Btw, when I edit the "content=100px" with DevTools it starts working.
,
Oct 10 2016
Sounds like an engine issue. @bokan: could you please take a look or route to someone appropriate?
,
Nov 7 2016
I'm not sure if this is a bug or working as intended. Chao, could you check what mobil Safari does? We should match that.
,
Nov 24 2016
It seems chrome mobile working as safari mobile.
,
Nov 24 2016
hs85jeong@gmail: It looks like Chrome's behavior is interoperable with Safari, in which case we're unlikely to change it. Could you confirm if you're seeing different behavior? By the way, the viewport tag specifies a layout width of 100px, which means that the red box will overflow the initial containing box and the content width of the document will be 300px. So even if we additively parse viewport meta tags, I would expect the page to load with the red box filling the entire width of the viewport.
,
Dec 6 2016
Dear bokan, Okay,, Safari mobile also looks like Chrome mobile behavior. As you explained, I expect the page to load with the red box filling the entire width of the viewport. I don't know what is right.
,
Dec 6 2016
Closing this since there's no bug. If you want the box to fill the entire width, you should include only one viewport meta tag and give the box the width that you specify in the meta tag. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by krajshree@chromium.org
, Sep 29 2016Components: Platform>DevTools
Labels: M-55 OS-Linux OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
111 KB
111 KB View Download