tor-browser

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

rule-edge-interior-inset-valid.html (1142B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Gaps: parsing rule-inset shorthands with valid values</title>
      6  <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
      7  <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#inset">
      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  <div id="target"></div>
     14  <script>
     15    const properties = ['column-rule-edge-inset', 'row-rule-edge-inset', 'column-rule-interior-inset', 'row-rule-interior-inset', 'rule-edge-inset', 'rule-interior-inset'];
     16    for (const property of properties) {
     17      test_valid_value(property, '0', '0px');
     18      test_valid_value(property, '-20px', '-20px');
     19      test_valid_value(property, '5%', '5%');
     20      test_valid_value(property, '10vmin', '10vmin');
     21      test_valid_value(property, 'calc(8em + 4ex)', 'calc(8em + 4ex)');
     22      test_valid_value(property, '5% 10%', '5% 10%');
     23      test_valid_value(property, '-20px 10px', '-20px 10px');
     24    }
     25  </script>
     26 </body>
     27 </html>