зеркало из https://github.com/mozilla/gecko-dev.git
Bug 210094. Make min-height and max-height work on fieldset. r+sr=dbaron
This commit is contained in:
Родитель
b706b44b41
Коммит
ced05f04cb
|
@ -507,6 +507,14 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext,
|
|||
kidReflowState.SetComputedHeight(PR_MAX(0, aReflowState.ComputedHeight() - mLegendSpace));
|
||||
}
|
||||
|
||||
kidReflowState.mComputedMinHeight =
|
||||
PR_MAX(0, aReflowState.mComputedMinHeight - mLegendSpace);
|
||||
|
||||
if (aReflowState.mComputedMaxHeight != NS_UNCONSTRAINEDSIZE) {
|
||||
kidReflowState.mComputedMaxHeight =
|
||||
PR_MAX(0, aReflowState.mComputedMaxHeight - mLegendSpace);
|
||||
}
|
||||
|
||||
nsHTMLReflowMetrics kidDesiredSize(aDesiredSize.mFlags);
|
||||
// Reflow the frame
|
||||
NS_ASSERTION(kidReflowState.mComputedMargin == nsMargin(0,0,0,0),
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset style="height: 100px">
|
||||
<legend>This is a test</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset style="min-height: 100px">
|
||||
<legend>This is a test</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset style="max-height: 100px">
|
||||
<legend>This is a test</legend>
|
||||
<div style="height: 200px">
|
||||
</div>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<fieldset style="height: 150px">
|
||||
<legend>This is a test</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -130,6 +130,9 @@ fails == 25888-3r.html 25888-3r-ref.html # bug 25888
|
|||
== 201293-1c.html 201293-1-ref.html
|
||||
== 201293-1d.html 201293-1-ref.html
|
||||
== 206516-1.html 206516-1-ref.html
|
||||
== 210094-1a.html 210094-1-ref.html
|
||||
== 210094-1b.html 210094-1-ref.html
|
||||
!= 210094-1c.html 210094-1-ref.html
|
||||
== 210876-1.html 210876-1-ref.html
|
||||
== 212563-1.html 212563-1-ref.html
|
||||
== 214077-1a.html 214077-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче