servo/tests/wpt/css-tests/css-transforms-1_dev/html/svg-translate-abs-unit-combinations-003.htm

26 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: SVG presentation attribute and translation-value arguments with different absolute units on translate - x in cm, y in mm</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-translate" rel="help">
<link href="reference/svg-translate-abs-unit-combinations-ref.htm" rel="match">
<meta content="svg" name="flags">
<meta content="The translate transform function must support different absoulute units on translation-value arguments. The rect in the test should be moved 100 pixels in the X direction and 50 pixels in the Y direction" name="assert">
<style type="text/css">
svg {
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<p>The test passes if there is a green square and no red.</p>
<svg>
<rect y="51" width="73" fill="red" x="101" height="73"></rect>
<rect width="75" fill="green" transform="translate(2.645833333cm 13.229166667mm)" height="75"></rect>
</svg>
</body></html>