svg-scale-003.html (1215B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and scale 2 with only one parameter specified</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-scale"> 9 <link rel="match" href="reference/svg-scale-ref.html"> 10 <meta name="flags" content="svg"> 11 <meta name="assert" content="If the second parameter is not provided, it is takes a value equal to the first. The green rect in this test should be scaled up 2 vertically and horizontally to completely cover the red rect."> 12 <style type="text/css"> 13 svg { 14 width: 200px; 15 height: 200px; 16 background: green; 17 } 18 </style> 19 </head> 20 <body> 21 <p>The test passes if you see a green square and no red.</p> 22 <svg> 23 <rect x="1" y="1" width="148" height="148" fill="red"/> 24 <rect width="75" height="75" fill="green" transform="scale(2)"/> 25 </svg> 26 </body> 27 </html>