tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

border-block-width-valid.html (1245B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Logical Properties and Values: parsing border-block-width with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-border-block-width">
      7 <meta name="assert" content="border-block-width supports the full grammar '<line-width>{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 </head>
     12 <body>
     13 <script>
     14 // <length> | thin | medium | thick
     15 test_valid_value("border-block-start-width", "10px");
     16 test_valid_value("border-block-start-width", "calc(10px + 0.5em)", "calc(0.5em + 10px)");
     17 test_valid_value("border-block-start-width", "thick");
     18 test_valid_value("border-block-start-width", "thin");
     19 test_valid_value("border-block-end-width", "0", "0px");
     20 test_valid_value("border-block-end-width", "calc(10px - 0.5em)", "calc(-0.5em + 10px)");
     21 test_valid_value("border-block-end-width", "medium");
     22 test_valid_value("border-block-width", "10px");
     23 test_valid_value("border-block-width", "medium calc(10px + 0.5em)", "medium calc(0.5em + 10px)");
     24 test_valid_value("border-block-width", "10px 10px", "10px");
     25 </script>
     26 </body>
     27 </html>