svg-matrix-033.html (1863B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and matrix and flipping up and left and scaling up vertically with scientific numbers with negative exponents: -1 0 0 -2 1000e-1 1000e-1</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 must support scientific numbers with negative exponents. The rect in the test should be flipped up and left scaled up vertically."> 12 <style type="text/css"> 13 svg { 14 width: 200px; 15 height: 200px; 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="50"> 24 <rect x="50" y="0" width="50" height="25" fill="yellow"/> 25 <rect x="0" y="0" width="50" height="25" fill="blue"/> 26 <rect x="50" y="25" width="50" height="25" fill="green"/> 27 <rect x="0" y="25" width="50" height="25" fill="fuchsia"/> 28 </pattern> 29 </defs> 30 <rect x="1" y="1" width="98" height="98" fill="red"/> 31 <rect width="100" height="50" fill="url(#coloredBoxes)" transform="matrix(-1 0 0 -2 1000e-1 1000e-1)"/> 32 </svg> 33 </body> 34 </html>