Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleTest.cpp

Issue 2532223003: Forces stacking context for computed value of transform-style:preserve-3d (Closed)
Patch Set: Switch to unit test & rephrase comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698