WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
214594
Wrong layer order with negative z-index and will-change: transform
https://bugs.webkit.org/show_bug.cgi?id=214594
Summary
Wrong layer order with negative z-index and will-change: transform
Dartess
Reported
2020-07-21 06:47:58 PDT
Created
attachment 404817
[details]
demo live demo (also in attach):
https://codepen.io/dartess/pen/bGEOJwM
when items has negative z-index AND has will-change: transform safari broke z-index order.
Attachments
demo
(1.08 KB, text/html)
2020-07-21 06:47 PDT
,
Dartess
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-07-21 18:43:47 PDT
<
rdar://problem/65914326
>
Simon Fraser (smfr)
Comment 2
2020-07-21 20:55:49 PDT
I can reproduce. I'm a bit surprised we get this wrong.
Simon Fraser (smfr)
Comment 3
2020-07-29 16:22:33 PDT
This happens because when we see a negative z-index child, we make its stacking context layer compositing eagerly: for (auto* childLayer : layer.negativeZOrderLayers()) { computeCompositingRequirements(&layer, *childLayer, overlapMap, currentState, backingSharingState, anyDescendantHas3DTransform); // If we have to make a layer for this child, make one now so we can have a contents layer // (since we need to ensure that the -ve z-order child renders underneath our contents). if (!willBeComposited && currentState.subtreeIsCompositing) { layer.setIndirectCompositingReason(IndirectCompositingReason::BackgroundLayer); layerWillComposite(); } } but this messes up the overlap map, so the second negative z-index child doesn't see the rects from the first one.
Rob Buis
Comment 4
2021-09-01 00:39:11 PDT
Fixing
https://bugs.webkit.org/show_bug.cgi?id=217154
also seems to fix this.
Rob Buis
Comment 5
2023-02-08 02:59:43 PST
This seems fixed these days.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug