tor-browser

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

padding-shorthand.html (1110B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS basic box model: padding sets longhands</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-box-3/#propdef-padding">
      7 <meta name="assert" content="padding supports the full grammar '<length-percentage>{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('padding', '1px 2px 3px 4px', {
     15  'padding-top': '1px',
     16  'padding-right': '2px',
     17  'padding-bottom': '3px',
     18  'padding-left': '4px'
     19 });
     20 
     21 test_shorthand_value('padding', '1px 2px 3px', {
     22  'padding-top': '1px',
     23  'padding-right': '2px',
     24  'padding-bottom': '3px',
     25  'padding-left': '2px'
     26 });
     27 
     28 test_shorthand_value('padding', '1px 2px', {
     29  'padding-top': '1px',
     30  'padding-right': '2px',
     31  'padding-bottom': '1px',
     32  'padding-left': '2px'
     33 });
     34 
     35 test_shorthand_value('padding', '1px', {
     36  'padding-top': '1px',
     37  'padding-right': '1px',
     38  'padding-bottom': '1px',
     39  'padding-left': '1px'
     40 });
     41 </script>
     42 </body>
     43 </html>