tor-browser

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

border-image-011.html (1438B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Backgrounds and Borders Test: border-image-outset (basic)</title>
      6 
      7  <link rel="author" title="Jérémie Patonnier" href="mailto:jeremie@patonnier.net">
      8  <link rel="help" href="http://www.w3.org/TR/css3-background/#border-image-outset">
      9  <link rel="match" href="reference/ref-filled-green-100px-square.xht">
     10 
     11  <meta name="flags" content="">
     12 
     13  <!--
     14 
     15  This is a follow-up to
     16  Pull Request 8788: Update css-backgrounds/border-image tests
     17  https://github.com/web-platform-tests/wpt/pull/8788
     18 
     19  Credit should go to Chris Nardi for trying to fix
     20  16 border-image tests with 2 relevant commits
     21 
     22  -->
     23 
     24  <style>
     25  div#red-overlapped-ref
     26    {
     27      background-color: red;
     28      padding: 24px;
     29      height: 52px;
     30      width: 52px;
     31      /* border-box is therefore 100px by 100px */
     32    }
     33 
     34  div#green-overlapping-test
     35    {
     36      background-color: green;
     37      border: red solid 1px;
     38      height: 50px;
     39      width: 50px; /* border-box is 52px by 52px */
     40 
     41      border-image-outset: 24px; /* 24px is equal to padding belt */
     42      border-image-slice: 25;
     43      border-image-source: url("support/60x60-green.png");
     44      border-image-width: 25px; /* we make sure that we will fill the outset */
     45    }
     46  </style>
     47 
     48  <p>Test passes if there is a filled green square and <strong>no red</strong>.
     49 
     50  <div id="red-overlapped-ref">
     51    <div id="green-overlapping-test"></div>
     52  </div>