tor-browser

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

shape-outside-ellipse-013.html (2023B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSS Test: left float, ellipse radii and position in 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/#funcdef-ellipse">
      7        <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
      8        <link rel="match" href="reference/shape-outside-ellipse-013-ref.html">
      9        <meta name="flags" content="ahem" />
     10        <meta name="assert" content="The test verifies that text wraps around a
     11                                     left float with a shape-outside defined as
     12                                     a ellipse with radii and position in px units.">
     13    </head>
     14    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     15    <style>
     16    body {
     17        margin: 0;
     18    }
     19    #container {
     20        position: relative;
     21    }
     22    #test-container {
     23        font: 40px/1 Ahem, sans-serif;
     24        width: 300px;
     25        height: 200px;
     26        color: green;
     27    }
     28    #test-shape {
     29        float: left;
     30        width: 140px;
     31        height: 140px;
     32        margin: 10px;
     33        padding: 10px;
     34        border: 10px solid transparent;
     35        shape-outside: ellipse(80px 40px at 90px 90px);
     36    }
     37    #line {
     38        position: absolute;
     39        top: 0px;
     40        left: 168px;
     41        width: 2px;
     42        height: 200px;
     43        border-left: 2px solid blue;
     44    }
     45    #failure {
     46        position: absolute;
     47        top: 80px;
     48        left: 170px;
     49        width: 40px;
     50        height: 40px;
     51        background-color: red;
     52        z-index: -1;
     53    }
     54    </style>
     55    <body>
     56    <p>The test passes if there is a green square to the right of the blue line. There should be no red.</p>
     57    <div id="container">
     58        <div id="test-container">
     59            <div id="test-shape"></div>
     60            <br/>
     61            <br/>
     62            X
     63        </div>
     64        <div id="line"></div>
     65        <div id="failure"></div>
     66    </div>
     67    </body>
     68 </html>