tor-browser

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

margin-block-inline-shorthand.html (1019B)


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