servo/tests/wpt/css-tests/css-transforms-1_dev/html/svg-matrix-064.htm

34 lines
No EOL
1.8 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: SVG presentation attribute and matrix function with invalid 'a' value with another transform function</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/#funcdef-matrix" rel="help">
<link href="reference/svg-matrix-four-color-ref.htm" rel="match">
<meta content="svg" name="flags">
<meta content="The matrix function does not support percentage values. If one argument is invalid in one function, none of the transforms in the function list should happen. The rect in this test should remain the same." name="assert">
<style type="text/css">
svg {
width: 400px;
height: 400px;
}
</style>
</head>
<body>
<p>The test passes if you see a four color square where the top left is green, the top right is fuchsia, the bottom left is yellow, and the bottom right is blue. You should see no red.</p>
<svg>
<defs>
<pattern width="100" patternUnits="userSpaceOnUse" y="0" x="0" id="coloredBoxes" height="100">
<rect y="50" width="50" fill="blue" x="50" height="50"></rect>
<rect y="50" width="50" fill="yellow" x="0" height="50"></rect>
<rect y="0" width="50" fill="fuchsia" x="50" height="50"></rect>
<rect y="0" width="50" fill="green" x="0" height="50"></rect>
</pattern>
</defs>
<rect y="1" width="98" fill="red" x="1" height="98"></rect>
<rect width="100" fill="url(#coloredBoxes)" transform="matrix(50% 0 0 -0.5 100 100) translateX(100)" height="100"></rect>
</svg>
</body></html>