border-top-radius-valid.html (1070B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Borders and Box Decorations 4 Test: Parsing 'border-top-radius' with valid values</title> 4 <link rel="author" title="Sebastian Zartner" href="mailto:sebastianzartner@gmail.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-borders-4/#corner-sizing"> 6 <meta name="assert" 7 content="This test checks that 'border-top-radius' supports the syntax <length-percentage [0,∞]>{1,2} [ / <length-percentage [0,∞]>{1,2} ]?."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/parsing-testcommon.js"></script> 11 12 <script> 13 test_valid_value("border-top-radius", "1px"); 14 test_valid_value("border-top-radius", "10%"); 15 test_valid_value("border-top-radius", "1px 5%"); 16 test_valid_value("border-top-radius", "5% 1px"); 17 test_valid_value("border-top-radius", "1px / 2px"); 18 test_valid_value("border-top-radius", "1px / 1px 2%"); 19 test_valid_value("border-top-radius", "1px 2% / 3%"); 20 test_valid_value("border-top-radius", "1px 2% / 3px 4px"); 21 </script>