blob: ae155b8a7b5a856bcb5c1b03437c40dc1005f20c [file] [log] [blame]
<!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) top 50%, yellow, blue)'), 'rejects calcs with percentage and pixels');
assert_false(CSS.supports('background', 'radial-gradient(calc(60% + 5px) ellipse at right calc(60px + 5px) top 50%, 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) top 50%, yellow, blue)'), 'rejects calcs with percentage and pixels');
assert_true(CSS.supports('background', 'radial-gradient(60% 5px ellipse at right calc(60px + 5px) top 50%, yellow, blue)'), 'rejects calcs with percentage and pixels');
}, 'radial-gradient with calcs using percentage and pixels.');
</script>