svg-skewxy-001.html (1209B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: SVG presentation attribute with skewX and skewY</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-skewx"> 9 <link rel="match" href="reference/svg-skewxy-ref.html"> 10 <meta name="flags" content="svg"> 11 <meta name="assert" content="The green rect in this test should be skewed horizontally 45 degrees and vertically 45 degrees to completely cover the red path."> 12 <meta name="fuzzy" content="maxDifference=0-2; totalPixels=0-270"> 13 <style type="text/css"> 14 svg { 15 height: 300px; 16 width: 300px; 17 background: green; 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 <path d="M 4,3 101,98 295,196 200,101 Z" fill="red"/> 25 <rect width="100" height="100" fill="green" transform="skewX(45) skewY(45)"/> 26 </svg> 27 </body> 28 </html>