Skip to content

Commit

Permalink
Support: ensure display is set to block for the support div (#4844)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
timmywil committed Feb 16, 2021
1 parent 627c573 commit f8bdb12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/css/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit f8bdb12

Please sign in to comment.