svg-external-styles-014.html (1592B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Transforms Test: Invalid external and presentation attribute styles on an SVG element</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/#transform-attribute-specificity"> 8 <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform-functions"> 9 <link rel="match" href="reference/svg-external-styles-ref.html"> 10 <link rel="stylesheet" href="support/svg-external-styles.css"> 11 <meta name="flags" content="svg"> 12 <meta name="assert" content="When both the external and presentation attribute styles are invalid, no transform should be applied. The rect in the test should not be scaled down or rotated."> 13 <style type="text/css"> 14 svg { 15 height: 300px; 16 width: 300px; 17 } 18 </style> 19 </head> 20 <body> 21 <p>The test passes if there is a vertical green stripe to the left of a yellow vertical stripe. You should see no red.</p> 22 <svg> 23 <!-- Fill with Gradient to avoid false positive. --> 24 <defs> 25 <linearGradient id="grad"> 26 <stop offset="50%" stop-color="green"/> 27 <stop offset="50%" stop-color="yellow"/> 28 </linearGradient> 29 </defs> 30 <rect x="1" y="1" width="98" height="98" fill="red"/> 31 <rect class="invalid" width="100" height="100" fill="url(#grad)" transform="rotate(90,)"/> 32 </svg> 33 </body> 34 </html>