tor-browser

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

font-size-valid.html (1233B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Fonts Module Level 4: parsing font-size with valid values</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-size-prop">
      7 <meta name="assert" content="font-size supports the full grammar '<absolute-size> | <relative-size> | <length-percentage>'.">
      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 // <absolute-size>
     15 test_valid_value('font-size', 'xx-small');
     16 test_valid_value('font-size', 'x-small');
     17 test_valid_value('font-size', 'small');
     18 test_valid_value('font-size', 'medium');
     19 test_valid_value('font-size', 'large');
     20 test_valid_value('font-size', 'x-large');
     21 test_valid_value('font-size', 'xx-large');
     22 // Added in Fonts level 4: https://github.com/w3c/csswg-drafts/issues/3907
     23 test_valid_value('font-size', 'xxx-large');
     24 
     25 // <relative-size>
     26 test_valid_value('font-size', 'larger');
     27 test_valid_value('font-size', 'smaller');
     28 
     29 // <length-percentage>
     30 test_valid_value('font-size', '10px');
     31 test_valid_value('font-size', '20%');
     32 test_valid_value('font-size', 'calc(30% - 40px)');
     33 </script>
     34 </body>
     35 </html>