Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page: Wrong user-scalable value in meta name=viewport on touch level #1294

Closed
narqo opened this issue Apr 5, 2016 · 1 comment
Closed

page: Wrong user-scalable value in meta name=viewport on touch level #1294

narqo opened this issue Apr 5, 2016 · 1 comment

Comments

@narqo
Copy link
Member

narqo commented Apr 5, 2016

https://github.com/bem/bem-core/blob/v2.9.0/touch.blocks/page/page.bh.js#L14-L20

page adds <meta name=viewport> with user-scalable=0 which is not a valid value.

See https://drafts.csswg.org/css-device-adapt/#user-scalable

The user-scalable property is translated into user-zoom with the following value translations.

  • yes and no are translated into zoom and fixed respectively.
  • Numbers ≥ 1, numbers ≤ -1, device-width and device-height are mapped to zoom
  • Numbers in the range (-1, 1), and unknown values, are mapped to fixed

The valid value is no.

/cc @doochik @tadatuta

@doochik
Copy link
Contributor

doochik commented Apr 5, 2016

This will fix bem/bem-components#1738 because fast click will be disabled for chrome on pages with meta user-scalable=no

doochik added a commit that referenced this issue Apr 5, 2016
@narqo narqo closed this as completed in 9988504 Apr 5, 2016
narqo pushed a commit that referenced this issue Apr 5, 2016
Wrong user-scalable value in meta name=viewport. Fix #1294
@narqo narqo removed the in progress label Apr 5, 2016
@narqo narqo assigned narqo and unassigned doochik Apr 5, 2016
narqo pushed a commit that referenced this issue Apr 5, 2016
narqo pushed a commit that referenced this issue Apr 5, 2016
Wrong user-scalable value in meta name=viewport
narqo pushed a commit that referenced this issue Apr 5, 2016
narqo pushed a commit that referenced this issue Apr 5, 2016
Wrong user-scalable value in meta name=viewport
veged pushed a commit that referenced this issue Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants