Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-conic-gradient.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-conic-gradient.html b/third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-conic-gradient.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aff1fa6bdb7973f20437332f3654a6aee33fc636 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-conic-gradient.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script> |
| +'use strict'; |
| + |
| +test(() => { |
| + let ThreeValuedPositionGradient = 1985; // From UseCounter.h |
| + |
| + let isCounted = () => internals.isUseCounted(document, ThreeValuedPositionGradient); |
| + var div = document.createElement('div'); |
| + |
| + div.style = 'background-image: conic-gradient(at left, black);'; |
| + div.style = 'background-image: conic-gradient(at left 10%, black);'; |
| + div.style = 'background-image: conic-gradient(at left 10% top 20%, black);'; |
| + assert_false(isCounted(), |
| + '1,2,4 values should not be counted'); |
| + |
| + div.style = 'background-image: conic-gradient(at left 10% top, black);'; |
|
Yiorsi
2017/05/22 07:15:19
conic-gradient not support one color-stop.
Eric Willigers
2017/05/22 07:27:07
Changed.
|
| + assert_true(isCounted(), |
| + 'gradient should be counted'); |
| +}, 'Three valued position syntax is use counted for conic-gradient'); |
| +</script> |