tor-browser

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

svg-gradientTransform-combination-001.html (1516B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG gradientTransform presentation attribute with translateX applied twice</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="match" href="reference/svg-gradientTransform-combination-ref.html">
      9    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform">
     10    <meta name="flags" content="svg">
     11    <meta name="assert" content="The gradientTransform attribute must support multiple transform functions the same element. The gradient in the test should be moved 100 pixels in the X direction resulting in a solid green rect.">
     12    <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-18000">
     13    <style type="text/css">
     14    svg {
     15        width: 200px;
     16        height: 200px;
     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        <defs>
     24            <linearGradient id="grad" gradientUnits="userSpaceOnUse" gradientTransform="translate(50 0) translate(50 0)">
     25                <stop offset="50%" stop-color="green"/>
     26                <stop offset="50%" stop-color="red"/>
     27            </linearGradient>
     28        </defs>
     29        <rect fill="url(#grad)" x="0" y="0" width="200" height="200"/>
     30    </svg>
     31 </body>
     32 </html>