| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>CSS Transforms Test: SVG patternTransform presentation attribute and translation-value argument with negative percentage unit having no effect on translateX</title> |
| <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> |
| <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-transform"> |
| <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions"> |
| <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-user-coordinate-space"> |
| <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform"> |
| <link rel="match" href="reference/svg-patternTransform-relative-ref.html"> |
| <meta name="flags" content="svg"> |
| <meta name="assert" content="Arguments in percentage units in patternTransform functions should have no affect. The gradient in the test should be not be moved resulting in a solid green rect."> |
| <style type="text/css"> |
| svg { |
| width: 100px; |
| height: 100px; |
| } |
| </style> |
| </head> |
| <body> |
| <p>The test passes if there is a green square and no red.</p> |
| <svg> |
| <defs> |
| <pattern id="greenRects" patternUnits="userSpaceOnUse" x="0" y="0" width="50" height="50" patternTransform="translateX(-25%)"> |
| <rect x="24" y="0" width="27" height="100" fill="green"/> |
| <rect x="74" y="0" width="27" height="100" fill="green"/> |
| </pattern> |
| </defs> |
| <rect fill="green" x="0" y="0" width="25" height="100"/> |
| <rect fill="red" x="25" y="0" width="25" height="100"/> |
| <rect fill="green" x="50" y="0" width="25" height="100"/> |
| <rect fill="red" x="75" y="0" width="25" height="100"/> |
| <rect x="-1" y="-1" fill="url(#greenRects)" x="0" y="0" width="102" height="102"/> |
| </svg> |
| </body> |
| </html> |