New issue
Advanced search Search tips

Issue 666575 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Feature



Sign in to add a comment

Show used value of z-index in addition to computed value in style pane of inspector

Project Member Reported by trchen@chromium.org, Nov 18 2016

Issue description

Feature request: DevTools also queries ComputedStyle::isStackingContext() from the element. When z-index is auto while isStackingContext is true, display z-index as "z-index: 0 (forced)".

Some background:
Many of CSS properties will force an element to create a stacking context, for example, opacity other than 1, transforms, filters, etc... Traditionally we adjust z-index:auto to z-index:0 in StyleAdjuster, but we no longer do that since 4 month ago: https://codereview.chromium.org/2047283002

Since that CL the inspector no longer shows the used value of z-index, but the computed value (prior to adjustment), which I think is more correct. However the used value is extremely valuable in debugging some CSS corner cases.
 
Status: WontFix (was: Untriaged)
We haven't received any user reports on this + this seems to be hard to explain. Mind punting it unless we get actual reports?

Sign in to add a comment