aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2021-02-16 14:34:14 -0500
committerGitHub <noreply@github.com>2021-02-16 14:34:14 -0500
commitf8bdb1270a3d6294201bc55400aaa2e414efb14a (patch)
tree3cf06fb2c80ed24b507eea37e6dc5c9e573f3a49 /src
parent627c573ac62e6582b4b324bcc6a1283ca48c3906 (diff)
downloadjquery-f8bdb1270a3d6294201bc55400aaa2e414efb14a.tar.gz
jquery-f8bdb1270a3d6294201bc55400aaa2e414efb14a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/css/support.js8
1 files changed, 8 insertions, 0 deletions
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 )