svg-translate-009.html (1414B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and translate with translation-value and unit less arguments in scientific notation</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/#svg-transform-value"> 8 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-number"> 9 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions"> 10 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#funcdef-transform-translate"> 11 <link rel="match" href="reference/svg-translate-ref.html"> 12 <meta name="flags" content="svg"> 13 <meta name="assert" content="The translate transform function must support unit less arguments in scientific numbers for translation-value. The rect in the test should be moved 50 pixels in the X direction and 50 pixels in the Y direction"> 14 <style type="text/css"> 15 svg { 16 width: 300px; 17 height: 300px; 18 } 19 </style> 20 </head> 21 <body> 22 <p>The test passes if there is a green square and no red.</p> 23 <svg> 24 <rect x="51" y="51" width="98" height="98" fill="red"/> 25 <rect width="100" height="100" fill="green" transform="translate(5.0e1 5.0e1)"/> 26 </svg> 27 </body> 28 </html>