tor-browser

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

shape-image-006.html (2100B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Test: left float, url(png), real image + shape-margin (px)</title>
      5    <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/>
      6    <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
      7    <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
      8    <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property"/>
      9    <link rel="match" href="reference/shape-image-006-ref.html"/>
     10    <meta name="flags" content="ahem"/>
     11    <meta name="assert" content="This test verifies that content wraps around all the image pixels
     12                                 + the shape-margin when shape-outside is given a png file."/>
     13    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14    <style type="text/css">
     15        body {
     16            margin: 0;
     17        }
     18        .container {
     19          left: 10px;
     20          font: 50px/1 Ahem;
     21        }
     22        #test {
     23            width: 200px;
     24            color: rgb(0,100,0);
     25        }
     26        #image {
     27            float: left;
     28            shape-outside: url("support/left-half-rectangle.png");
     29            shape-margin: 10px;
     30        }
     31        .blue {
     32            width: 2px;
     33            height: 100px;
     34            background-color: blue;
     35        }
     36        .left-line { left: 65px; }
     37        .right-line { left: 125px; }
     38 
     39        .failure {
     40            left: 70px;
     41            width: 50px;
     42            height: 100px;
     43            background-color: red;
     44            z-index: -1;
     45        }
     46        .container, .blue, .failure {
     47            position: absolute;
     48            top: 70px;
     49        }
     50    </style>
     51 </head>
     52 <body>
     53    <p>
     54        The test passes if the green rectangle on the right is completely between the two blue lines.
     55        There should be no red.
     56    </p>
     57    <div id="test" class="container">
     58        <img id="image" src="support/left-half-rectangle.png"/>
     59        X<br/>X
     60    </div>
     61    <div class="blue left-line"></div>
     62    <div class="blue right-line"></div>
     63    <div class="failure"></div>
     64 </body>
     65 </html>