From f8bdb1270a3d6294201bc55400aaa2e414efb14a Mon Sep 17 00:00:00 2001 From: Timmy Willison <4timmywil@gmail.com> Date: Tue, 16 Feb 2021 14:34:14 -0500 Subject: [PATCH] Support: ensure display is set to block for the support div (#4844) - Fixes an issue with the support test in iframes in Android 8 Chrome 86+, where display: inline resulted in unexpected height values. Fixes gh-4832 --- src/css/support.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/css/support.js b/src/css/support.js index 3ed31bb9b..3a9d25c73 100644 --- a/src/css/support.js +++ b/src/css/support.js @@ -122,6 +122,14 @@ define( [ tr.style.height = "1px"; trChild.style.height = "9px"; + // Support: Android 8 Chrome 86+ + // In our bodyBackground.html iframe, + // display for all div elements is set to "inline", + // which causes a problem only in Android 8 Chrome 86. + // Ensuring the div is display: block + // gets around this issue. + trChild.style.display = "block"; + documentElement .appendChild( table ) .appendChild( tr ) -- 2.39.5