tor-browser

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

svg-translate-001.html (1283B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG presentation attribute and translate with translation-value arguments without unit</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-translate">
      9    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform-value">
     10    <link rel="match" href="reference/svg-translate-ref.html">
     11    <meta name="flags" content="svg">
     12    <meta name="assert" content="The translate transform function must support unit less arguments for translation-value. The rect in the test should be moved 50 pixels in the X direction and 50 pixels in the Y direction">
     13    <style type="text/css">
     14    svg {
     15        width: 300px;
     16        height: 300px;
     17    }
     18    </style>
     19 </head>
     20 <body>
     21    <p>The test passes if there is a green square and no red.</p>
     22    <svg>
     23        <rect x="51" y="51" width="98" height="98" fill="red"/>
     24        <rect width="100" height="100" fill="green" transform="translate(50 50)"/>
     25    </svg>
     26 </body>
     27 </html>