зеркало из https://github.com/mozilla/gecko-dev.git
Bug 405305. Fix z-ordering of legend background so it's in the block-backgrounds layer. r+sr=mats
This commit is contained in:
Родитель
0b47bce39d
Коммит
f6a0bf6aa0
|
@ -240,7 +240,9 @@ nsFieldSetFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
if (mLegendFrame) {
|
||||
nsDisplayListSet set(aLists, aLists.Content());
|
||||
// The legend's background goes on our BlockBorderBackgrounds list because
|
||||
// it's a block child.
|
||||
nsDisplayListSet set(aLists, aLists.BlockBorderBackgrounds());
|
||||
nsresult rv = BuildDisplayListForChild(aBuilder, mLegendFrame, aDirtyRect, set);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<legend style="margin:0; border:0; padding:0;">
|
||||
<span style="display:inline-block; background:green; width:100px; height:100px;">
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<fieldset>
|
||||
<legend style="background:red; margin:0; border:0; padding:0;">
|
||||
<span style="float:left; display:inline-block; background:green; width:100px; height:100px;">
|
||||
</legend>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
|
@ -476,4 +476,5 @@ random == 403134-1.html 403134-1-ref.html # bug 405377
|
|||
== 404301-1.html 404301-1-ref.html
|
||||
!= data:application/xml,<foo/> data:text/plain, # bug 404419
|
||||
== 405186-1.xhtml about:blank
|
||||
== 405305-1.html 405305-1-ref.html
|
||||
== 405584-1.html 405584-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче