Files
servo/tests/wpt/css-tests/css-transforms-1_dev/html/svg-gradientTransform-049.htm

31 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: SVG transform presentation attribute on the gradient element - has no effect</title>
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
<link href="http://www.w3.org/TR/css-transforms-1/#svg-transform" rel="help">
<link href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions" rel="help">
<link href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform" rel="help">
<link href="reference/svg-gradientTransform-transform-ref.htm" rel="match">
<meta content="svg" name="flags">
<meta content="The gradientTransform attribute does not support the transform presentation attribute. The gradient in the test should not be moved." name="assert">
<style type="text/css">
svg {
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<p>The test passes if there is a vertical green bar to the left of a vertical yellow bar.</p>
<svg>
<defs>
<linearGradient y1="0%" x1="0%" transform="translateX(50px)" id="grad">
<stop stop-color="green" offset="50%"></stop>
<stop stop-color="yellow" offset="50%"></stop>
</linearGradient>
</defs>
<rect y="0" width="100" height="100" x="0" fill="url(#grad)"></rect>
</svg>
</body></html>