tor-browser

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

border-width-shorthand.html (1263B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 3: border-width sets longhands</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-width">
      7 <meta name="assert" content="border-width supports the full grammar '<line-width>{1,4}'.">
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/css/support/shorthand-testcommon.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 test_shorthand_value('border-width', '5px', {
     15  'border-top-width': '5px',
     16  'border-right-width': '5px',
     17  'border-bottom-width': '5px',
     18  'border-left-width': '5px'
     19 });
     20 
     21 test_shorthand_value('border-width', 'thick thin', {
     22  'border-top-width': 'thick',
     23  'border-right-width': 'thin',
     24  'border-bottom-width': 'thick',
     25  'border-left-width': 'thin'
     26 });
     27 
     28 test_shorthand_value('border-width', 'thin medium thick', {
     29  'border-top-width': 'thin',
     30  'border-right-width': 'medium',
     31  'border-bottom-width': 'thick',
     32  'border-left-width': 'medium'
     33 });
     34 
     35 test_shorthand_value('border-width', '1px 2px 3px 4px', {
     36  'border-top-width': '1px',
     37  'border-right-width': '2px',
     38  'border-bottom-width': '3px',
     39  'border-left-width': '4px'
     40 });
     41 </script>
     42 </body>
     43 </html>