mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 886646 - Part 5: Always build a stacking context for sticky positioned elements. r=dbaron
This commit is contained in:
parent
690918fcba
commit
367d66a9a7
@ -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)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user