| Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| index fec10203173ff8cebf0275591c6d2c04a838e830..b99cabdb3bf7fa5bf0342f69e2b24e6dbb3c336d 100644
|
| --- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
| @@ -2819,7 +2819,7 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
|
| case CSSPropertyFontVariantNumeric:
|
| return valueForFontVariantNumeric(style);
|
| case CSSPropertyZIndex:
|
| - if (style.hasAutoZIndex())
|
| + if (style.hasAutoZIndex() || !style.isStackingContext())
|
| return CSSIdentifierValue::create(CSSValueAuto);
|
| return CSSPrimitiveValue::create(style.zIndex(),
|
| CSSPrimitiveValue::UnitType::Integer);
|
|
|