Issue #146 - Part 5: Treat table row groups as containing blocks.

This aligns our behavior with Gecko/Blink.
This commit is contained in:
wolfbeast 2019-11-03 19:09:47 +01:00 committed by Roy Tam
commit af75c920b0
2 changed files with 11 additions and 0 deletions

View file

@ -6629,6 +6629,9 @@ GetNearestBlockContainer(nsIFrame* frame)
// Since the parent of such a block is either a normal block or
// another such pseudo, this shouldn't cause anything bad to happen.
// Also the anonymous blocks inside table cells are not containing blocks.
//
// If we ever start skipping table row groups from being containing blocks,
// we need to remove the containing block assignment in StickyScrollContainer .
while (frame->IsFrameOfType(nsIFrame::eLineParticipant) ||
frame->IsBlockWrapper() ||
// Table rows are not containing blocks either