svg-matrix-034.html (1718B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and matrix and flipping left and scaling down vertically: -1 0 0 0.5 100 0</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 rect in the test should be flipped left scaled down 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="200"> 24 <rect x="50" y="100" width="50" height="100" fill="yellow"/> 25 <rect x="0" y="100" width="50" height="100" fill="blue"/> 26 <rect x="50" y="0" width="50" height="100" fill="green"/> 27 <rect x="0" y="0" width="50" height="100" fill="fuchsia"/> 28 </pattern> 29 </defs> 30 <rect x="1" y="1" width="98" height="98" fill="red"/> 31 <rect width="100" height="200" fill="url(#coloredBoxes)" transform="matrix(-1 0 0 0.5 100 0)"/> 32 </svg> 33 </body> 34 </html>