Index: third_party/WebKit/LayoutTests/fast/css/radial-gradient-calc-percentage-pixels.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/radial-gradient-calc-percentage-pixels.html b/third_party/WebKit/LayoutTests/fast/css/radial-gradient-calc-percentage-pixels.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..791750d1ac05a9624fe6fdf8d644fb4a19edbd31 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/radial-gradient-calc-percentage-pixels.html |
@@ -0,0 +1,11 @@ |
+<!doctype html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test(() => { |
+ assert_false(CSS.supports('background', 'radial-gradient(calc(60% + 5px) circle at right calc(60px + 5px) center, yellow, blue)'), 'rejects calcs with percentage and pixels'); |
+ assert_false(CSS.supports('background', 'radial-gradient(calc(60% + 5px) ellipse at right calc(60px + 5px) center, yellow, blue)'), 'rejects calcs with percentage and pixels'); |
+ assert_false(CSS.supports('background', 'radial-gradient(calc(60% + 5px) calc(60% + 5px) ellipse at right calc(60px + 5px) center, yellow, blue)'), 'rejects calcs with percentage and pixels'); |
+ assert_true(CSS.supports('background', 'radial-gradient(60% 5px ellipse at right calc(60px + 5px) center, yellow, blue)'), 'rejects calcs with percentage and pixels'); |
+}, 'radial-gradient with calcs using percentage and pixels.'); |
+</script> |