tor-browser

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

border-image-shorthand-001.htm (1601B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5        <title>CSS Background and Borders Test: The 'border-image' shorthand property</title>
      6        <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
      7        <!--
      8        Test rehabilitated by Gérard Talbot
      9        2020-05-28
     10        -->
     11        <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-image">
     12        <link rel="match" href="reference/border-image-shorthand-001-ref.html">
     13        <meta name="assert" content="This test checks that setting 'border-image-source', 'border-image-slice', 'border-image-width', 'border-image-outset' and 'border-image-repeat' properties in the shorthand notation produces the same border image as setting individual properties with the same values.">
     14        <style>
     15            div
     16            {
     17                border: 10px double red;
     18                height: 150px;
     19                margin: 50px 0px 100px 50px;
     20                width: 150px;
     21            }
     22 
     23            #test
     24            {
     25                border-image: url("support/blue-and-red-diamonds-81x81.png") 30 / 4 / 2 round stretch;
     26            }
     27 
     28            #reference
     29            {
     30                border-image-outset: 2;
     31                border-image-repeat: round stretch;
     32                border-image-slice: 30;
     33                border-image-source: url("support/blue-and-red-diamonds-81x81.png");
     34                border-image-width: 4;
     35            }
     36        </style>
     37 
     38        <p>Test passes if there are <strong>2 identical images.</strong>
     39        <div id="test"></div>
     40        <div id="reference"></div>