aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/html/svg-matrix-028.htm
blob: f61610f32da4d22817a32889252dc1c2daaf9953 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html><head>
    <title>CSS Transforms Test: SVG presentation attribute and matrix and flipping up and scaling up horizontally: 2 0 0 -1 0 100</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 rect in the test should be flipped up and scaled up horizontally." name="assert">
    <style type="text/css">
        svg {
            width: 200px;
            height: 200px;
        }
    </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="50" patternUnits="userSpaceOnUse" y="0" x="0" id="coloredBoxes" height="100">
                <rect y="0" width="25" fill="yellow" x="0" height="50"></rect>
                <rect y="0" width="25" fill="blue" x="25" height="50"></rect>
                <rect y="50" width="25" fill="green" x="0" height="50"></rect>
                <rect y="50" width="25" fill="fuchsia" x="25" height="50"></rect>
            </pattern>
        </defs>
        <rect y="1" width="98" fill="red" x="1" height="98"></rect>
        <rect width="50" fill="url(#coloredBoxes)" transform="matrix(2 0 0 -1 0 100)" height="100"></rect>
    </svg>


</body></html>