tor-browser

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

polar-origin-auto-002.html (1005B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>CSS Test: Origin of Coordinates</title>
      5  <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" />
      6  <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-origin-property" />
      7  <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." />
      8  <style type="text/css">
      9    .container {
     10      width: 200px;
     11      height: 200px;
     12      border: medium solid black;
     13    }
     14    .item {
     15      position: absolute;
     16      polar-origin: auto;
     17      polar-distance: 0px;
     18      polar-angle: 90deg;
     19      width: 50px;
     20      height: 50px;
     21      background-color: red;
     22    }
     23  </style>
     24 </head>
     25 <body>
     26  <p>Test passes if the center of a red box is positioned at the center of the containing block.<br>
     27  The element is positioned using polar coordinates and the origin of coordinates is the center of the containing block.</p>
     28  <div class="container">
     29    <div class="item"></div>
     30  </div>
     31 </body>
     32 </html>