Closed Bug 1966192 Opened 3 months ago Closed 1 month ago

Frame iteration for view transition capture should iterate in paint order / respect z-index.

Categories

(Core :: Layout, defect)

defect
Points:
5

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m2])

Attachments

(1 file)

This is for

  1. css/css-view-transitions/css-tags-paint-order.html
  2. css/css-view-transitions/css-tags-paint-order-with-entry.html

In these two tests, we set z-index in one of the captured elements

#one {
  background: green;
  width: 100px;
  height: 100px;
  position: relative;
  z-index: 1;
  view-transition-name: one;
}
#two {
  background: yellow;
  width: 100px;
  height: 100px;
  view-transition-name: two;
}

In this example, we expected the green one overlaps the yellow one. However, in Gecko, the yellow one overlaps the green one.

This is basically this FIXME.

Summary: z-index property doesn't work well on the positioned captured element → Frame iteration for view transition capture should iterate in paint order / respect z-index.
Points: --- → 5
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED

An ideal way is to iterate the display list because they are sorted.
However, we add special view transition display items after capturing
the old state, so the display list is not suitable for capturing new
state. Therefore, we still have to sort the frame list in z-index order.

However, we only need to sort them when capturing old and new states, so
it should not have much impact on the entire performance.

Pushed by bchiou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ba9671e42f99 https://hg.mozilla.org/integration/autoland/rev/f0a32c9d6ab5 Sort the frames with z-index order when capturing old state and new state. r=view-transitions-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: