зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0f250fb8c2
Коммит
84705736a5
|
@ -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>
|
Загрузка…
Ссылка в новой задаче