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)
Core
Layout
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
- css/css-view-transitions/css-tags-paint-order.html
- 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.
Comment 1•3 months ago
|
||
This is basically this FIXME.
Updated•3 months ago
|
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.
Updated•3 months ago
|
Points: --- → 5
Assignee | ||
Updated•1 month ago
|
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•1 month ago
|
||
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
Comment 4•1 month ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox142:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Updated•15 days ago
|
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in
before you can comment on or make changes to this bug.
Description
•