webkit-gradient-comma.html (763B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://compat.spec.whatwg.org/#css-gradients-webkit-radial-gradient"> 3 <link rel="help" href="https://www.w3.org/TR/css3-images/#radial-gradients"> 4 <meta name="assert" content="Negative radii values are invalid."> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script> 8 test(function() { 9 assert_true(CSS.supports("background-image", "-webkit-radial-gradient(1px 2px, 3% 4%, red, blue)")); 10 }, '-webkit-radial-gradient accepts comma before color stops.'); 11 12 test(function() { 13 assert_false(CSS.supports("background-image", "-webkit-radial-gradient(1px 2px, 3% 4% red, blue)")); 14 }, '-webkit-radial-gradient rejects missing comma before color stops.'); 15 </script>