Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
index edc5e78f83ce4ae8f84a831a552b661214f78636..bb7034eaee9b8260524bff982f460ce5b655ee98 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp |
@@ -2876,4 +2876,15 @@ TEST_P(PaintPropertyTreeBuilderTest, |
EXPECT_TRUE( |
getLayoutObjectByElementId("absolute")->container()->isLayoutBlock()); |
} |
+ |
+TEST_P(PaintPropertyTreeBuilderTest, SimpleFilter) { |
+ setBodyInnerHTML( |
+ "<div id='filter' style='filter:opacity(0.5); height:1000px;'>" |
+ "</div>"); |
+ const ObjectPaintProperties* filterProperties = getLayoutObjectByElementId("filter")->objectPaintProperties(); |
+ EXPECT_TRUE(filterProperties->effect()->parent()->isRoot()); |
+ EXPECT_EQ(frameScrollTranslation(), filterProperties->effect()->localTransformSpace()); |
+ EXPECT_EQ(frameContentClip(), filterProperties->effect()->outputClip()); |
+} |
+ |
} // namespace blink |