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

26 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Transforms Test: SVG presentation attribute and positive and negative translation-value arguments different absolute units on translate - x negative in inches, y positive in px</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" height="75" fill="green" transform="translate(-1.041666667in 50px)" x="200"></rect>
</svg>
</body></html>