tor-browser

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

shape-outside-circle-056.html (2562B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSS Test: left float, offset circle at top left + margin-box + shape-margin</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-circle">
      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/#margin-box">
     10        <link rel="match" href="reference/shape-outside-circle-056-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
     14                                     a circle from the margin box and is positioned
     15                                     top left with a shape-margin. Additionally, the
     16                                     shape-outside: circle element is offset from
     17                                     its containing block.">
     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        padding: 50px;
     31        position: absolute;
     32        top: -50px;
     33        left: -50px;
     34        color: green;
     35    }
     36    #test-shape {
     37        float: left;
     38        width: 120px;
     39        height: 120px;
     40        margin: 10px;
     41        padding: 10px;
     42        border: 10px solid transparent;
     43        shape-margin: 10px;
     44        shape-outside: margin-box circle(70px at 90px 90px);
     45    }
     46    #line {
     47        position: absolute;
     48        top: 0px;
     49        left: 168px;
     50        width: 2px;
     51        height: 200px;
     52        border-left: 2px solid blue;
     53    }
     54    #failure {
     55        position: absolute;
     56        top: 80px;
     57        left: 170px;
     58        width: 40px;
     59        height: 40px;
     60        background-color: red;
     61        z-index: -1;
     62    }
     63    </style>
     64    </head>
     65    <body>
     66    <p>The test passes if there is a green square to the right of the blue line. There should be no red.</p>
     67    <div id="container">
     68        <div id="test-container">
     69            <div id="test-shape"></div>
     70            <br/>
     71            <br/>
     72            X
     73        </div>
     74        <div id="line"></div>
     75        <div id="failure"></div>
     76    </div>
     77    </body>
     78 </html>