Bug 886646 - Part 5: Always build a stacking context for sticky positioned elements. r=dbaron

This commit is contained in:
Corey Ford 2013-09-06 09:35:16 -04:00
parent 690918fcba
commit 367d66a9a7

View File

@ -2089,7 +2089,8 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
bool isPositioned = disp->IsPositioned(child);
bool isStackingContext =
(isPositioned && pos->mZIndex.GetUnit() == eStyleUnit_Integer) ||
(isPositioned && (disp->mPosition == NS_STYLE_POSITION_STICKY ||
pos->mZIndex.GetUnit() == eStyleUnit_Integer)) ||
isVisuallyAtomic || (aFlags & DISPLAY_CHILD_FORCE_STACKING_CONTEXT);
if (isVisuallyAtomic || isPositioned || (!isSVG && disp->IsFloating(child)) ||