tor-browser

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

border-image-shorthand.sub.html (1905B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>CSS Backgrounds and Borders Module Level 3: border-image sets longhands</title>
      6 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image">
      7 <meta name="assert" content="border-image supports the full grammar ' <‘border-image-source’> || <‘border-image-slice’> [ / <‘border-image-width’> | / <‘border-image-width’>? / <‘border-image-outset’> ]? || <‘border-image-repeat’>'.">
      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('border-image', 'none', {
     15  'border-image-source': 'none',
     16  'border-image-slice': '100%',
     17  'border-image-width': '1',
     18  'border-image-outset': '0',
     19  'border-image-repeat': 'stretch'
     20 });
     21 
     22 test_shorthand_value('border-image', 'url("http://{{host}}/") 1 2 3 4 fill', {
     23  'border-image-source': 'url("http://{{host}}/")',
     24  'border-image-slice': '1 2 3 4 fill',
     25  'border-image-width': '1',
     26  'border-image-outset': '0',
     27  'border-image-repeat': 'stretch'
     28 });
     29 
     30 test_shorthand_value('border-image', 'repeat round', {
     31  'border-image-source': 'none',
     32  'border-image-slice': '100%',
     33  'border-image-width': '1',
     34  'border-image-outset': '0',
     35  'border-image-repeat': 'repeat round'
     36 });
     37 
     38 test_shorthand_value('border-image', 'url("http://{{host}}/") fill 1 2% 3 4%', {
     39  'border-image-source': 'url("http://{{host}}/")',
     40  'border-image-slice': '1 2% 3 4% fill',
     41  'border-image-width': '1',
     42  'border-image-outset': '0',
     43  'border-image-repeat': 'stretch'
     44 });
     45 
     46 test_shorthand_value('border-image', '1 2% 3 4% / 5% / 6', {
     47  'border-image-source': 'none',
     48  'border-image-slice': '1 2% 3 4%',
     49  'border-image-width': '5%',
     50  'border-image-outset': '6',
     51  'border-image-repeat': 'stretch'
     52 });
     53 </script>
     54 </body>
     55 </html>