tor-browser

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

svg-gradientTransform-001.html (1605B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG gradientTransform presentation attribute and translateX with translation-value argument 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="https://www.w3.org/TR/css-transforms-1/#svg-transform-functions">
      9    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform">
     10    <link rel="match" href="reference/svg-gradientTransform-ref.html">
     11    <meta name="flags" content="svg">
     12    <meta name="assert" content="The gradientTransform attribute must support functions with unit less arguments for translation-value. The gradient in the test should be moved 25 pixels in the X direction resulting in a solid green rect.">
     13    <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-4400">
     14    <style type="text/css">
     15    svg {
     16        width: 100px;
     17        height: 100px;
     18    }
     19    </style>
     20 </head>
     21 <body>
     22    <p>The test passes if there is a green square and no red.</p>
     23    <svg>
     24        <defs>
     25            <linearGradient id="grad" x1="0%" y1="0%" gradientTransform="translate(50 0)">
     26                <stop offset="50%" stop-color="green"/>
     27                <stop offset="50%" stop-color="red"/>
     28            </linearGradient>
     29        </defs>
     30        <rect fill="url(#grad)" x="0" y="0" width="100" height="100"/>
     31    </svg>
     32 </body>
     33 </html>