| Index: third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| index 76e7135702ed8990667fb2c5282132808e477b5c..fe24b630745e18e81ddfbcd81793ad21380e42e8 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyleTest.cpp
|
| @@ -68,4 +68,14 @@ TEST(ComputedStyleTest, FocusRingOutset) {
|
| #endif
|
| }
|
|
|
| +TEST(ComputedStyleTest, Preserve3dForceStackingContext) {
|
| + RefPtr<ComputedStyle> style = ComputedStyle::create();
|
| + style->setTransformStyle3D(TransformStyle3DPreserve3D);
|
| + style->setOverflowX(OverflowHidden);
|
| + style->setOverflowY(OverflowHidden);
|
| + style->updateIsStackingContext(false, false);
|
| + EXPECT_EQ(TransformStyle3DFlat, style->usedTransformStyle3D());
|
| + EXPECT_TRUE(style->isStackingContext());
|
| +}
|
| +
|
| } // namespace blink
|
|
|