tor-browser

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

svg-scale-004.html (1217B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG presentation attribute and scale 0.5 with parameters separated by commas + no whitespace</title>
      5    <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform">
      7    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions">
      8    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#funcdef-transform-scale">
      9    <link rel="match" href="reference/svg-scale-ref.html">
     10    <meta name="flags" content="svg">
     11    <meta name="assert" content="Parameters in the scale function can be separated by commas and no whitespace. The red rect in this test should be scaled down 0.5 to completely cover the green rect.">
     12    <style type="text/css">
     13        svg {
     14            width: 200px;
     15            height: 200px;
     16            background: green;
     17        }
     18    </style>
     19 </head>
     20 <body>
     21    <p>The test passes if you see a green square and no red.</p>
     22    <svg>
     23        <rect x="1" y="1" width="196" height="196" fill="red" transform="scale(0.5,0.5)"/>
     24        <rect width="100" height="100" fill="green"/>
     25    </svg>
     26 </body>
     27 </html>