tor-browser

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

padding-block-inline-shorthand.html (1026B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Logical Properties and Values: padding-block and padding-inline set longhands</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-padding-block">
      7 <meta name="assert" content="padding-block, padding-inline support the full grammar '<'padding-top'>{1,2}'.">
      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('padding-block', '0% 10px', {
     15  'padding-block-start': '0%',
     16  'padding-block-end': '10px'
     17 });
     18 
     19 test_shorthand_value('padding-block', '20%', {
     20  'padding-block-start': '20%',
     21  'padding-block-end': '20%'
     22 });
     23 
     24 test_shorthand_value('padding-inline', '10px 30%', {
     25  'padding-inline-start': '10px',
     26  'padding-inline-end': '30%'
     27 });
     28 
     29 test_shorthand_value('padding-inline', '0%', {
     30  'padding-inline-start': '0%',
     31  'padding-inline-end': '0%'
     32 });
     33 </script>
     34 </body>
     35 </html>