svg-transform-group-008.html (1148B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute and skewX on group</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 a child element. The group of elements should be skewed horizontally, therefore the child element should be skewed horizontally to completely cover the red rect."> 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 <rect width="100" height="100" fill="green"/> 25 </g> 26 </svg> 27 </body> 28 </html>