svg-transform-nested-018.html (1254B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute, skewX on group, scaleX on child</title> 5 <link rel="author" title="David Alcala" href="mailto:dalcala@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="match" href="reference/svg-green-square-250x250-ref.html"> 9 <meta name="flags" content="svg"> 10 <meta name="assert" content="Transforms on a parent element should be pre-multiplied to transforms on a child element. The group of elements should be skewed horizontally. Additionally, the child rect should be scaled horizontally."> 11 <style type="text/css"> 12 svg { 13 width: 250px; 14 height: 250px; 15 background: green; 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 <path d="M 2,1 100,1 198,99 100,99 Z" fill="red"/> 23 <g transform="skewX(45)"> 24 <!-- FIXME: This test will still pass if the transform= is ignored --> 25 <rect width="200" height="100" fill="green" transform="scale(0.5 1)"/> 26 </g> 27 </svg> 28 </body> 29 </html>