border-width-valid.html (914B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders Module Level 3: parsing border-width with valid values</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-width"> 8 <meta name="assert" content="border-width supports the full grammar '<line-width>{1,4}'."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/parsing-testcommon.js"></script> 12 </head> 13 <body> 14 <script> 15 test_valid_value("border-width", "1em"); 16 test_valid_value("border-width", "2px thin medium thick"); 17 18 test_valid_value("border-top-width", "0px"); 19 test_valid_value("border-right-width", "thin"); 20 test_valid_value("border-bottom-width", "medium"); 21 test_valid_value("border-left-width", "thick"); 22 </script> 23 </body> 24 </html>