Merge pull request #18416 from razh/ensureMinimumFontSize-body-flex
Fix `ensureMinFontSizeComputed` calculation if `<body>` is a flex container
This commit is contained in:
commit
cf58113e8c
@ -480,6 +480,7 @@ class TextLayer {
|
||||
div.style.opacity = 0;
|
||||
div.style.lineHeight = 1;
|
||||
div.style.fontSize = "1px";
|
||||
div.style.position = "absolute";
|
||||
div.textContent = "X";
|
||||
document.body.append(div);
|
||||
// In `display:block` elements contain a single line of text,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user