tor-browser

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

svg-scale-008.html (1161B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG presentation attribute and scale 0.5 on the g element </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="The group containing the red rect in this test should be scaled down 0.5 to be completely hidden behind 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        <g transform="scale(0.5)">
     24            <rect x="1" y="1" width="296" height="296" fill="red"/>
     25        </g>
     26        <rect width="150" height="150" fill="green"/>
     27    </svg>
     28 </body>
     29 </html>