tor-browser

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

shape-image-012.html (1652B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Test: Wrapping content around right floating actual jpg image</title>
      5    <link rel="author" title="Zoltan Horvath" href="mailto:zoltan@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="match" href="reference/shape-image-012-ref.html"/>
      9    <meta name="flags" content="ahem"/>
     10    <meta name="assert" content="This test verifies that content wraps around all the image pixels when shape-outside is given a jpg."/>
     11    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12    <style type="text/css">
     13        .container {
     14            position: absolute;
     15            top: 70px;
     16            left: 8px;
     17            font-family: Ahem;
     18            font-size: 20px;
     19            color: green;
     20            line-height: 20px;
     21        }
     22        #test {
     23            width: 200px;
     24            height: 200px;
     25            text-align: right;
     26            background-color: red;
     27        }
     28        #image {
     29            float: right;
     30            margin-left: 10px;
     31            shape-outside: url("support/right-half-rectangle.jpg");
     32        }
     33    </style>
     34 </head>
     35 <body>
     36    <p>
     37        The test passes if there's a green square with an image at top right with vertical white and green stripes.
     38        There should be no red.
     39    </p>
     40    <div id="test" class="container">
     41        <img id="image" src="support/right-half-rectangle.jpg"/>
     42        XXXXX XXXXX XXXXX XXXXX XXXXX
     43        XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX
     44    </div>
     45 </body>
     46 </html>