mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-26 09:18:37 +09:00
issue #1547 - Correct z-ordering for some table parts and add reftests
This commit is contained in:
parent
c399e1938f
commit
edaea616b3
5 changed files with 164 additions and 2 deletions
|
|
@ -187,8 +187,11 @@ nsTableWrapperFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
BuildDisplayListForChild(aBuilder, mCaptionFrames.FirstChild(), captionSet);
|
||||
|
||||
// Now we have to sort everything by content order, since the caption
|
||||
// may be somewhere inside the table
|
||||
set.BlockBorderBackgrounds()->SortByContentOrder(GetContent());
|
||||
// may be somewhere inside the table.
|
||||
// We don't sort BlockBorderBackgrounds and BorderBackgrounds because the
|
||||
// display items in those lists should stay out of content order in order to
|
||||
// follow the rules in https://www.w3.org/TR/CSS21/zindex.html#painting-order
|
||||
// and paint the caption background after all of the rest.
|
||||
set.Floats()->SortByContentOrder(GetContent());
|
||||
set.Content()->SortByContentOrder(GetContent());
|
||||
set.PositionedDescendants()->SortByContentOrder(GetContent());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue