tor-browser

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

scale-optional-second-001.html (1307B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: transform property with scale function and one parameter</title>
      5    <link rel="author" title="Jian Zhang" href="mailto:jian.andy.zhang@gmail.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
      8    <link rel="match" href="reference/scale-optional-second-ref.html">
      9    <meta name="assert" content="If the second parameter of scale function is not provided, it takes a value equal to the first. This transform causes the element to appear twice as long in both the X and Y axes.">
     10    <style type="text/css">
     11        .greenSquare {
     12            position: absolute;
     13            top: 100px;
     14            left: 100px;
     15            width: 100px;
     16            height: 100px;
     17            background: green;
     18            transform:scale(2);
     19        }
     20        .redSquare {
     21            position: absolute;
     22            top: 52px;
     23            left: 52px;
     24            width: 196px;
     25            height: 196px;
     26            background: red;
     27        }
     28    </style>
     29 </head>
     30 <body>
     31    <p>The test passes if there is a green square and no red.</p>
     32    <div class="redSquare"></div>
     33    <div class="greenSquare"></div>
     34 </body>
     35 </html>