tor-browser

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

shape-outside-ellipse-017.html (2428B)


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