tor-browser

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

shape-outside-inset-030.html (2515B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSS Test: left float, offset inset, px units</title>
      5        <link rel="author" title="Brad Werth" href="mailto:bwerth@mozilla.com">
      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 verfies that text flows around a
     12                                     right float with a shape-outside defined as
     13                                     an inset irregular elliptically rounded
     14                                     rectangle in px units with a shape-margin.
     15                                     Additionally, the shape-outside: inset element is
     16                                     offset from its containing block.">
     17    </head>
     18    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     19    <style>
     20        #container {
     21            position: relative;
     22            margin-left: 25px;
     23        }
     24        #red {
     25            position: absolute;
     26            width: 200px;
     27            height: 200px;
     28            background-color: red;
     29        }
     30        #test-container {
     31            width: 200px;
     32            height: 200px;
     33            font: 25px/1 Ahem;
     34            color: green;
     35            text-align: right;
     36            padding: 50px;
     37            position: absolute;
     38            top: -50px;
     39            left: -50px;
     40        }
     41        #test-shape {
     42            float: right;
     43            width: 200px;
     44            height: 200px;
     45            shape-margin: 10px;
     46            shape-outside: inset(60px 10px 60px 110px round 70px 0px 0px 10px / 10px 0px 0px 20px);
     47        }
     48        #static-shape {
     49            position: absolute;
     50            left: 100px;
     51            width: 100px;
     52            height: 100px;
     53            top: 50px;
     54            background-color: green;
     55        }
     56    </style>
     57    <body>
     58        <p>The test passes if there is a green square and no red.</p>
     59        <div id="container">
     60            <div id="red"></div>
     61            <div id="test-container">
     62                <div id="test-shape"></div>
     63                XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX
     64            </div>
     65            <div id="static-shape"></div>
     66        </div>
     67    </body>
     68 </html>