From 040159ab810abbe1fe435c3d8033e4ff0f24dbb3 Mon Sep 17 00:00:00 2001 From: Vitaly Potyarkin Date: Thu, 13 Sep 2018 08:14:39 +0300 Subject: [PATCH] Disable font boosting in Chrome for Android Text-size-adjust and viewport are not enough to completely disable font boosting in Chrome for Android. When user sets default text scaling in Chrome to any value above 100%, Chrome applies font boosting even to pages with text-size-adjust:100% That leads to uneven scaling of elements on the page More information: https://docs.google.com/document/d/1PPcEwAhXJJ1TQShor29KWB17KJJq7UJOM34oHwYP3Zg --- src/main/webapp/sass/_common.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/webapp/sass/_common.scss b/src/main/webapp/sass/_common.scss index 038a613ec7..118be420a4 100644 --- a/src/main/webapp/sass/_common.scss +++ b/src/main/webapp/sass/_common.scss @@ -49,6 +49,10 @@ html { } } +body * { + max-height: 9999999em; /* disable font boosting in mobile browsers */ +} + body { max-width: 89em; margin: auto;