tor-browser

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

transforms-rotate-translate-scale.html (1387B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: transform property with scale function and rotate function with one parameter</title>
      5    <link rel="author" title="Ji Kai" href="mailto:7jikai@gmail.com">
      6    <link rel="reviewer" title="Dayang Shen" href="mailto:shendayang@baidu.com"> <!-- 2013-09-04 -->
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
      8    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
      9    <link rel="match" href="reference/transforms-rotate-translate-scale-ref.html">
     10    <meta name="assert" content="If the rotate and scale with parameter not provided, greenSquare will not cover redSquare.">
     11    <style type="text/css">
     12        .greenSquare {
     13            position: absolute;
     14            top: 50px;
     15            left: 50px;
     16            width: 100px;
     17            height: 100px;
     18            background: green;
     19            transform: translate(75px, 75px) scale(1.5, 1.5) rotate(90deg) ;
     20        }
     21 
     22        .redSquare {
     23            position: absolute;
     24            top: 100px;
     25            left: 100px;
     26            width: 150px;
     27            height: 150px;
     28            background: red;
     29        }
     30      </style>
     31 </head>
     32 <body>
     33    <p>The test passes if there is a green square and no red.</p>
     34    <div class="redSquare"></div>
     35    <div class="greenSquare"></div>
     36 </body>
     37 </html>