diff options
author | Timmy Willison <4timmywil@gmail.com> | 2021-02-17 16:19:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 16:19:04 -0500 |
commit | 09f254361f1fe8a563b8a90fe6a4d269f4b11514 (patch) | |
tree | 9a90eb710add617a749505c7b1fb3ee95df9a38b | |
parent | 8ae477a432f0924cd4bd3bdeaef2c4c15e483a8f (diff) | |
download | jquery-09f254361f1fe8a563b8a90fe6a4d269f4b11514.tar.gz jquery-09f254361f1fe8a563b8a90fe6a4d269f4b11514.zip |
Support: ensure display is set to block for the support div
* Support: ensure display is set to block for the support div
- Fixes an issue with the support test in iframes in Android 8 Chrome 86+,
where display: inline resulted in unexpected height values.
Close gh-4845
Fixes gh-4832
-rw-r--r-- | src/css/support.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/css/support.js b/src/css/support.js index 9e6a915d2..48f95dc36 100644 --- a/src/css/support.js +++ b/src/css/support.js @@ -33,6 +33,15 @@ support.reliableTrDimensions = function() { tr.style.height = "1px"; div.style.height = "9px"; + // Support: Android Chrome 86+ + // In our bodyBackground.html iframe, + // display for all div elements is set to "inline", + // which causes a problem only in Android Chrome, but + // not consistently across all devices. + // Ensuring the div is display: block + // gets around this issue. + div.style.display = "block"; + documentElement .appendChild( table ) .appendChild( tr ) |