tor-browser

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

svg-scale-011.html (1261B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG presentation attribute and scale -2 with only one parameter specified</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="Scaling by a negative value should flip the element and if the second parameter of the scale function is not provided, it is takes a value equal to the first. The green rect in this test flipped rightward and downard into view and scaled up 2 to completely cover the red background.">
     12    <style type="text/css">
     13        svg {
     14            width: 200px;
     15            height: 200px;
     16            background: red;
     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="-100" y="-100" width="100" height="100" fill="green" transform="scale(-2)"/>
     24    </svg>
     25 </body>
     26 </html>