tor-browser

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

shape-outside-ellipse-015.html (2287B)


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