webkit-gradient-sign.html (697B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://compat.spec.whatwg.org/#css-gradients-webkit-linear-gradient"> 3 <meta name="assert" content="Check that we do not crash even if color-stop() is not resolvable at parse time."> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 test(() => { 8 assert_true(CSS.supports("background-image", "-webkit-gradient(linear, left top, left bottom, color-stop(calc(0.5 + 0.001 * sign(1em - 1px)), blue))")); 9 }); 10 11 test(() => { 12 assert_true(CSS.supports("background-image", "-webkit-gradient(linear, left top, left bottom, color-stop(calc(50% + 0.001% * sign(1em - 1px)), blue))")); 13 }); 14 </script>