Bug 1870103 - Disallow fragmentation-imposed block-size growth for replaced elements. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D196811
This commit is contained in:
Ting-Yu Lin 2023-12-19 16:33:58 +00:00
Родитель 0f250fb8c2
Коммит 84705736a5
2 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -6070,6 +6070,11 @@ nsReflowStatus nsFlexContainerFrame::ReflowFlexItem(
if (!aReflowInput.IsInFragmentedContext()) {
return false;
}
if (aItem.Frame()->IsReplaced()) {
// Disallow fragmentation-imposed block-size growth for replaced elements
// since they are monolithic, and cannot be fragmented.
return false;
}
if (aItem.HasAspectRatio()) {
// Aspect-ratio's automatic content-based minimum size doesn't work
// properly in a fragmented context (Bug 1868284) when we use 'auto'

Просмотреть файл

@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1870103">
<div style="columns: 2;">
<div style="display: flex;">
<textarea></textarea>
<input>
</div>
</div>