Issue #1992 - Part 1: Un-prefix -moz-{min|max}-content keywords.

This commit is contained in:
Moonchild 2022-09-20 20:41:33 +00:00 committed by roytam1
commit fa8bc1e81c
7 changed files with 15 additions and 18 deletions

View file

@ -1032,7 +1032,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);