tor-browser

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

svg-matrix-059.html (1779B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Transforms Test: SVG presentation attribute and matrix function with invalid 'b' value</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-matrix">
      9    <link rel="match" href="reference/svg-matrix-four-color-ref.html">
     10    <meta name="flags" content="svg">
     11    <meta name="assert" content="The matrix function does not support degree units. If one argument is invalid, no transform should take place so the rect in this test should remain the same.">
     12    <style type="text/css">
     13        svg {
     14            width: 400px;
     15            height: 400px;
     16        }
     17    </style>
     18 </head>
     19 <body>
     20    <p>The test passes if you see a four color square where the top left is green, the top right is fuchsia, the bottom left is yellow, and the bottom right is blue. You should see no red.</p>
     21    <svg>
     22        <defs>
     23            <pattern id="coloredBoxes" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
     24                <rect x="50" y="50" width="50" height="50" fill="blue"/>
     25                <rect x="0" y="50" width="50" height="50" fill="yellow"/>
     26                <rect x="50" y="0" width="50" height="50" fill="fuchsia"/>
     27                <rect x="0" y="0" width="50" height="50" fill="green"/>
     28            </pattern>
     29        </defs>
     30        <rect x="1" y="1" width="98" height="98" fill="red"/>
     31        <rect width="100" height="100" fill="url(#coloredBoxes)" transform="matrix(0.5 45deg 0 -0.5 100 100)"/>
     32    </svg>
     33 </body>
     34 </html>