tor-browser

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

shape-outside-inset-031.html (2152B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSS Test: right float, inset and shape-margin</title>
      5        <link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
      6        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset">
      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-outside-inset-010-ref.html"/>
     10        <meta name="flags" content="ahem" />
     11        <meta name="assert" content="The test verifies a shape with rectangular inset and
     12                                     shape-margin has rounded corners.">
     13        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14    </head>
     15    <style>
     16        #container {
     17            position: relative;
     18            width: 200px;
     19            height: 200px;
     20            overflow: hidden;
     21            margin-left: 25px;
     22        }
     23        #test-container {
     24            /* allow at most 1.5 glyphs to overflow the left edge of #container. */
     25            margin-left: -30px;
     26            width: 230px;
     27            height: 200px;
     28            font: 20px/1 Ahem;
     29            background-color: red;
     30            color: green;
     31            text-align: right;
     32        }
     33        #test-shape {
     34            margin-left: 30px;
     35            float: right;
     36            width: 200px;
     37            height: 200px;
     38            shape-margin: 70px;
     39            shape-outside: inset(95px 40px 95px 150px);
     40        }
     41        #static-shape {
     42            position: absolute;
     43            left: 50px;
     44            top: 20px;
     45            width: 150px;
     46            height: 160px;
     47            background-color: green;
     48        }
     49    </style>
     50    <body>
     51        <p>The test passes if there is a green square and no red.</p>
     52        <div id="container">
     53            <div id="test-container">
     54                <div id="test-shape"></div>
     55                XXXXXXXXXX XXXXX XXXX XXX XXX XXX XXX XXXX XXXXX XXXXXXXXXX
     56            </div>
     57            <div id="static-shape"></div>
     58        </div>
     59    </body>
     60 </html>