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

31 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: SVG gradientTransform presentation attribute with translateX applied twice</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="reference/svg-gradientTransform-combination-ref.htm" rel="match">
<link href="http://www.w3.org/TR/css-transforms-1/#svg-gradient-transform-pattern-transform" rel="help">
<meta content="svg" name="flags">
<meta content="The gradientTransform attribute must support multiple transform functions the same element. The gradient in the test should be moved 100 pixels in the X direction resulting in a solid green rect." name="assert">
<style type="text/css">
svg {
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<p>The test passes if there is a green square and no red.</p>
<svg>
<defs>
<linearGradient gradientUnits="userSpaceOnUse" gradientTransform="translateX(50px) translateX(50px)" id="grad">
<stop stop-color="green" offset="50%"></stop>
<stop stop-color="red" offset="50%"></stop>
</linearGradient>
</defs>
<rect y="0" width="200" height="200" x="0" fill="url(#grad)"></rect>
</svg>
</body></html>