tor-browser

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

shape-outside-padding-box-003.html (1746B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: right float, shape-outside:padding-box and shape-margin</title>
      3 <link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
      4 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#funcdef-inset">
      5 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
      6 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property">
      7 <link rel="match" href="reference/shape-outside-padding-box-003-ref.html"/>
      8 <meta name="flags" content="ahem" />
      9 <meta name="assert" content="The test verfies a shape with shape-outside:padding-box
     10                             and shape-margin has rounded corners.">
     11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12 <style>
     13 #container {
     14  position: relative;
     15  width: 200px;
     16  height: 200px;
     17  overflow: hidden;
     18  margin-left: 25px;
     19 }
     20 #test-container {
     21  /* Allow at most 1.5 glyphs to overflow the left edge of #container. */
     22  margin-left: -30px;
     23  width: 230px;
     24  height: 200px;
     25  font: 20px/1 Ahem;
     26  background-color: red;
     27  color: green;
     28  text-align: right;
     29 }
     30 #test-shape {
     31  margin-left: 30px;
     32  float: right;
     33  box-sizing: border-box;
     34  width: 200px;
     35  height: 200px;
     36  border-width: 95px 40px 95px 120px;
     37  border-style: solid;
     38  border-color: transparent;
     39  shape-margin: 70px;
     40  shape-outside: padding-box;
     41 }
     42 #static-shape {
     43  position: absolute;
     44  left: 50px;
     45  top: 20px;
     46  width: 150px;
     47  height: 160px;
     48  background-color: green;
     49 }
     50 </style>
     51 <p>The test passes if there is a green square and no red.</p>
     52 <div id="container">
     53  <div id="test-container">
     54    <div id="test-shape"></div>
     55    XXXXXXXXXX XXXXX XXXX XXX XXX XXX XXX XXXX XXXXX XXXXXXXXXX
     56    <div id="static-shape"></div>
     57  </div>
     58 </div>