svg-translate-053.html (1179B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and translate with arguments separated by multiple spaces</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-translate"> 9 <link rel="match" href="reference/svg-translate-ref.html"> 10 <meta name="flags" content="svg"> 11 <meta name="assert" content="The translate transform function arguments can multiple spaces. The rect in the test should be moved 50 pixels in the X direction and 50 pixels in the Y direction"> 12 <style type="text/css"> 13 svg { 14 width: 300px; 15 height: 300px; 16 } 17 </style> 18 </head> 19 <body> 20 <p>The test passes if there is a green square and no red.</p> 21 <svg> 22 <rect x="51" y="51" width="98" height="98" fill="red"/> 23 <rect width="100" height="100" fill="green" transform="translate(50 50)"/> 24 </svg> 25 </body> 26 </html>