| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |