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

Side by Side Diff: Source/core/animation/DeferredLegacyStyleInterpolationTest.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 3 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/animation/DeferredLegacyStyleInterpolation.h" 6 #include "core/animation/DeferredLegacyStyleInterpolation.h"
7 7
8 #include "core/css/CSSInheritedValue.h" 8 #include "core/css/CSSInheritedValue.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/css/CSSValueList.h" 10 #include "core/css/CSSValueList.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10vw green)")); 83 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(20px 10vw green)"));
84 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco lor)")); 84 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "drop-shadow(0px 0px 0px currentco lor)"));
85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)")); 85 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "opacity(1)"));
86 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)")); 86 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "saturate(0)"));
87 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)")); 87 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "grayscale(1)"));
88 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)")); 88 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "invert(1)"));
89 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)")); 89 EXPECT_FALSE(test(CSSPropertyWebkitFilter, "sepia(1)"));
90 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)")); 90 EXPECT_TRUE(test(CSSPropertyWebkitFilter, "url(#svgfilter)"));
91 } 91 }
92 92
93 TEST_F(AnimationDeferredLegacyStyleInterpolationTest, BackdropFilter)
94 {
95 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "hue-rotate(180deg) blur(6px)") );
96 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(0) blur(0px)"));
97 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "none"));
98 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "brightness(0) contrast(0)"));
99 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10px green)") );
100 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(20px 10vw green)")) ;
101 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "drop-shadow(0px 0px 0px current color)"));
102 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "opacity(1)"));
103 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "saturate(0)"));
104 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "grayscale(1)"));
105 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "invert(1)"));
106 EXPECT_FALSE(test(CSSPropertyBackdropFilter, "sepia(1)"));
107 EXPECT_TRUE(test(CSSPropertyBackdropFilter, "url(#svgfilter)"));
93 } 108 }
109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698