tor-browser

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

svg-patternTransform-001.html (1764B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG patternTransform 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="http://www.w3.org/TR/css-transforms-1/#svg-transform-value">
      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-patternTransform-ref.html">
     11    <meta name="flags" content="svg">
     12    <meta name="assert" content="The patternTransform attribute must support functions with unit less arguments for translation-value. The pattern in the test should be moved 25 pixels in the X direction resulting in a solid green rect.">
     13    <style type="text/css">
     14    svg {
     15        width: 100px;
     16        height: 100px;
     17        background:red;
     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             <pattern id="greenRects" patternUnits="userSpaceOnUse" x="0" y="0" width="50" height="50" patternTransform="translate(25 0)">
     26                 <rect x="0" y="0" width="25" height="25" fill="green"/>
     27                 <rect x="0" y="25" width="25" height="25" fill="green"/>
     28             </pattern>
     29        </defs>
     30        <rect fill="green" x="0" y="0" width="25" height="100"/>
     31        <rect fill="green" x="50" y="0" width="25" height="100"/>
     32        <rect fill="url(#greenRects)" x="0" y="0" width="100" height="100"/>
     33    </svg>
     34 </body>
     35 </html>