tor-browser

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

transform-origin.html (1262B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms API Test: transform-origin</title>
      5    <link rel="author" title="Michael Downey" href="mailto:miked782000@yahoo.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#propdef-transform-origin">
      7    <link rel="match" href="reference/transform-origin-ref.html" />
      8    <meta name="assert" content="The transform should change the transform-origin to the bottom right and rotate 180 degrees">
      9    <style type="text/css">
     10        body {margin:0}
     11        #greenSquare {
     12            position: absolute;
     13            top: 0px;
     14            left: -100px;
     15            width: 100px;
     16            height: 100px;
     17            background: green;
     18            transform-origin: right bottom;
     19            transform:rotate(90deg);
     20        }
     21        #relativeContainer {
     22            position: relative;
     23        }
     24        #redSquare {
     25            position: absolute;
     26            top: 0px;
     27            left: 0px;
     28            width: 100px;
     29            height: 100px;
     30            background: red;
     31        }
     32    </style>
     33 
     34 </head>
     35 <body>
     36 
     37 <p>The test passes if there is a green square and no red.</p>
     38 <div id="relativeContainer" >
     39    <div id="redSquare"></div>
     40    <div id="greenSquare"></div>
     41 </div>
     42 
     43 </body>
     44 </html>