tor-browser

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

font-width-valid.html (1502B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Fonts Module Level 4: parsing font-width with valid values</title>
      6 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-width-prop">
      7 <meta name="assert" content="font-width supports the full grammar 'normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded'.">
      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 for (const property of ['font-width','font-stretch']) {
     15    test_valid_value(property, 'normal');
     16    test_valid_value(property, 'ultra-condensed');
     17    test_valid_value(property, 'extra-condensed');
     18    test_valid_value(property, 'condensed');
     19    test_valid_value(property, 'semi-condensed');
     20    test_valid_value(property, 'semi-expanded');
     21    test_valid_value(property, 'expanded');
     22    test_valid_value(property, 'extra-expanded');
     23    test_valid_value(property, 'ultra-expanded');
     24 
     25    test_valid_value(property, '234.5%');
     26    test_valid_value(property, 'calc(100%)');
     27    test_valid_value(property, 'calc(0%)');
     28    test_valid_value(property, 'calc(-100%)');
     29    test_valid_value(property, 'calc(100% + 100%)', 'calc(200%)');
     30    test_valid_value(property, 'calc(100% + (sign(20cqw - 10px) * 5%))', 'calc(100% + (5% * sign(20cqw - 10px)))');
     31 }
     32 </script>
     33 </body>
     34 </html>