import from UXP: Issue #1992 - Part 1: Un-prefix -moz-{min|max}-content keywords. (fa8bc1e8)

This commit is contained in:
2022-09-23 11:26:08 +08:00
parent 15dad8176f
commit 9e7a520bf3
7 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -999,7 +999,7 @@ OutputPanel.prototype._resize = function () {
break;
}
this.document.body.style.width = "-moz-max-content";
this.document.body.style.width = "max-content";
let style = this._frame.contentWindow.getComputedStyle(this.document.body);
let frameWidth = parseInt(style.width, 10);
let width = Math.min(maxWidth, frameWidth);