Closed Bug 1640732 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 23760 - ZIndex: Report computed z-index as specified, ignoring stacking context.

Categories

(Core :: Layout: Positioned, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 23760 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/23760
Details from upstream follow.

Vladimir Levin <vmpstr@chromium.org> wrote:

ZIndex: Report computed z-index as specified, ignoring stacking context.

This patch changes the behavior of computed style z-index to
comply with spec: it reports the value as specified instead of
changing it to auto if the style does not induce a stacking context.

Note that since z-index only applies on positioned elements, and
grid and flex children, this patch introduces an EffectiveZIndex() which
is set to 0 if the z-index does not apply. This is so that code relying
on z-index will behave as it did before. However, ZIndex() now reflects
the value that was specified.

R=futhark@chromium.org, pdr@chromium.org
Fixed: 1023232
Change-Id: Ib11467a9818b746c72bebbb167223f1bb41a5f9f

Reviewed-on: https://chromium-review.googlesource.com/2212391
WPT-Export-Revision: 63f88b75c9db6ad0a001b2db5ce72dc3f89e6a1f

Component: web-platform-tests → Layout: Positioned
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 3 subtests

Status Summary

Firefox

OK : 2
PASS: 6

Chrome

OK : 2
PASS: 4
FAIL: 2

Safari

OK : 2
PASS: 6

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c84f43070568
[wpt PR 23760] - ZIndex: Report computed z-index as specified, ignoring stacking context., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.